0

How to check product quantity before checkout ?

I want to avoid the order if a required quantity is not reached.

Nota : I use Commerce Physical Product module.

0

You can use rules to change the quantity in a line item... so you could force the quantity up and output a system message. I don't know of a way to prevent them from checking out using rules.

So: Condition: Data Comparison: Line item: Product: SKU equals XX Condition: Data Comparison: Line Item: Quantity less than X Action: System message explaining why we're increasing quantity Action: Data Set Value: Set quantity to X+3

Update: this strategy might work for you.

  • Thanks for the answer and the link. My case seems more complicated but it's a good start. Thanks. – druvik Nov 8 '11 at 8:00
  • Please come back and write up your actual fix when you get it. Thanks! – rfay Nov 8 '11 at 16:45
  • Finally i use the solution of your link and i fork a condition of drupal.org/project/commerce_conditions in order to adapt to my own case. Thanks again ! – druvik Nov 17 '11 at 14:40
0

Just created a similar rule. Product minimum quantity must be >=100 only for selected product.

Hope this helps...

Config screenshot

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.