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.

2 Answers 2


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
    Commented Nov 8, 2011 at 8:00
  • Please come back and write up your actual fix when you get it. Thanks!
    – rfay
    Commented Nov 8, 2011 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
    Commented Nov 17, 2011 at 14:40

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 and acknowledge you have read our privacy policy.

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