I want to put a limit on the amount of one product someone can order. I limited this on the product page by putting a max of 10 on it. However I can't see a way to limit it per order line on the cart content page. Is there a method that can be used?
You could probably hook into one of the Order events in the NotificationCenter. I did something similar in the passed by hooking into the NotificationCenter.Order.OrderLinesAdding and removed the order line if it matched a certain condition.
Limit the quantity someone can order
Hi,
I want to put a limit on the amount of one product someone can order. I limited this on the product page by putting a max of 10 on it. However I can't see a way to limit it per order line on the cart content page. Is there a method that can be used?
Thanks, Jeff
Hey Jeff,
You could probably hook into one of the Order events in the NotificationCenter. I did something similar in the passed by hooking into the NotificationCenter.Order.OrderLinesAdding and removed the order line if it matched a certain condition.
Hope that helps.
Tom
Or you can just handle it using JavaScript if you only want it to be client side. But you will have to change the code of the cart
Thanks, I will try these out.
is working on a reply...