News:

Looking for documentation? Take a look on our wiki

Main Menu

Change value for absMaxProducts

Started by Andre72, March 01, 2013, 22:05:02 PM

Previous topic - Next topic

Andre72

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

zanardi

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.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Milbo

right, zanardi your method deletes the value in the moment you store the config once.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/