I need to lock(uneditable) quantity field in order and just have one quantity per product.
How can I do that?
Asked by: fathollahi.mehdi
on December 5, 2012
have not tried it, but what about removing the quantity field?
A possibility is to install Commerce Stock module.
If there is only one product in stock you can't order more than one.
The quantity field isn't locked but you can't proceed the order with more than one pcs.
How about rules?
Rules ist made for this.
You need a rule, fired, when one adds somthing to the cart.
In that rule, you chekch for that certain product and its quantity.
If customer tries to add the product with more than one piece, you give him a message, and reduce the amount to 1.
tnx, and when user change quantity in order?