VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: 9line on November 03, 2017, 16:56:02 PM

Title: Set Minimum & Maximum Cart total quantity
Post by: 9line on November 03, 2017, 16:56:02 PM
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,
Title: Re: Set Minimum & Maximum Cart total quantity
Post by: jenkinhill on November 03, 2017, 17:38:45 PM
Do not cross-post. You duplicate post has been deleted.
Title: Re: Set Minimum & Maximum Cart total quantity
Post by: 9line on November 05, 2017, 11:36:37 AM
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,