News:

Support the VirtueMart project and become a member

Main Menu

Set Minimum & Maximum Cart total quantity

Started by 9line, November 03, 2017, 16:56:02 PM

Previous topic - Next topic

9line

Hi,

I am looking for a way to set a minimum and maximum total products allowed to be added to the cart, I know its possible to set this on the shipping, but it does not display a message that is helpful to the customer, a message such as 'The minimum quantity is 6' and 'The maximum quantity is 10' would be great, but there is no way to differentiate the message displayed for the shipping.

Is there any code I could add to the cart that could check the total products and display a message if either value is not met?

Using Joomla 3.8.1 & Virtuemart 3.2.4

Many thanks,

jenkinhill

Do not cross-post. You duplicate post has been deleted.
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

9line

Hi Kelvyn,

Apologies for that, I realised I had posted in the wrong area.

Also, I missed my PHP version which is 7.0.25

Thanks,