Author Topic: Set Minimum & Maximum Cart total quantity  (Read 348 times)

9line

  • Beginner
  • *
  • Posts: 5
Set Minimum & Maximum Cart total quantity
« 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,

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26905
  • Always on vacation
    • Jenkin Hill Internet
Re: Set Minimum & Maximum Cart total quantity
« Reply #1 on: November 03, 2017, 17:38:45 pm »
Do not cross-post. You duplicate post has been deleted.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM.3.2.15.9866 on Joomla 3.8.10 PHP 7.0.30

Testing VM.3.2.15.9898 on J3.8.10

9line

  • Beginner
  • *
  • Posts: 5
Re: Set Minimum & Maximum Cart total quantity
« Reply #2 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,