How can I prevent users from buying less than a minimum quantity of a product (can be different for different products, and some doesnt have a minium quantity)? Im adding products with the javascript API
You would add a property to your product node specifying the min quantity that people should buy. Now use that value in your javascript to ensure the quantity field is smaller than the min quantity. If you want to be sure about the amount you can use the .net API and use the Notification center to look at the quantity that is added for an order line and remove it if you want to.
Minmum quantity on products
How can I prevent users from buying less than a minimum quantity of a product (can be different for different products, and some doesnt have a minium quantity)? Im adding products with the javascript API
Hi Tobbe
You would add a property to your product node specifying the min quantity that people should buy. Now use that value in your javascript to ensure the quantity field is smaller than the min quantity. If you want to be sure about the amount you can use the .net API and use the Notification center to look at the quantity that is added for an order line and remove it if you want to.
Kind regards
Anders
is working on a reply...