VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Andre72 on March 01, 2013, 22:05:02 PM

Title: Change value for absMaxProducts
Post by: Andre72 on March 01, 2013, 22:05:02 PM
Hi,

in product.php the VMConfig use for some functions a property absMaxProducts:
$maxNumber = VmConfig::get ('absMaxProducts', 700);

Is the default value somewhere stored so that it can be changed?
- I mean to change the absMaxProducts default value ...

Thanks

Andre
Title: Re: Change value for absMaxProducts
Post by: zanardi on February 10, 2017, 17:56:56 PM
I know this is a very old post but it was the first result when I searched for how to configure absMaxProducts so I think it's a good place to report my findings.

As far as I can see, this parameter cannot be set in backend configuration. But since I don't like to hack the code, I did some testing and I was able to manually add this value to the config table.

I.e. in table #__virtuemart_configs edit the field config add this at the end:

|absMaxProducts=10000

or whatever value you prefer. This has been tested on VM 3.0.18.
Title: Re: Change value for absMaxProducts
Post by: jenkinhill on February 10, 2017, 18:12:28 PM
Looks like something that should be in hidden config.  https://docs.virtuemart.net/manual/general-concepts/206-hidden-configurations.html
Title: Re: Change value for absMaxProducts
Post by: Milbo on February 14, 2017, 08:42:17 AM
right, zanardi your method deletes the value in the moment you store the config once.