Ecommerce - limit order size


(Pomster09) #1

Hi guys

 

I'm setting up shopping cart and checkout system for people to order free posters.

 

Dilemma:

  • My client (internal) wants the public to be able to order free posters.
  • There's about 40 different type of posters
  • People can order up to 10 of each poster
  • But there has to be a max amount of 50 posters in each order

Setting up the form to have 0 to 10 per poster was easy, but how do I go about capping the total amount of posters?

 

This would be simple in an html form, as I'd just use a bit of javascript to watch for the count, then disable further selections and pop up a message.

 

But how do I go about limiting how many total posters someone can order?

 

Cheers

 


(Bart Banda) #2

I think you'd need JS to handle that restriction as well, basically do a count check every time they update the quantity box and make sure all quantities of all posters are less than 50.