Add Purchase Limit in Shopping cart page.

Set a limit to the quantity on the shopping cart page. So when a customer adds a quantity more that is allowed in the shopping cart a message is displayed that the item quantity exceeds the limit.
Jira Code:CL-484

Requirement

If a customer alters the quantity on the cart page, the maximum quantity will be checked and if the quantity entered is greater than that then a message will be displayed as you

Solution

  • A field is added in the item record.The Quantity allowed in the cart is filled in the field QUANTITY ALLOWED IN CART

Then a suitelet is called in the item_list_navigable_macro.txt, Which is in the checkout bundle.In the suitelet the item id,Quantity of the item and item type is passed.Form the suitelet the quantity allowed in the cart field is fetched.

Leave a comment

Your email address will not be published. Required fields are marked *