Fast order Entry – Add Item to cart-Site Builder

To add item quickly to shopping cart from the shopping cart itself.
Jira code-SQUIP-528

Requirement
To add item to shopping cart from cart page itself without going to the shopping pages.

Solution

  • Made a suitelet to get the info of the value added. 
    Taken the value added in the field of Fast order entry and passed it into the suitelet. 
    The suitelet SQUIP_485_Fast_order_entry.js is added and deployed. There taking the list of the items with that value and passing it as an array to the result. 
  • Added the add to cart functionality. 
    There is a functionality commonly used in the PDP and PLP page ,we added same function to the shopping cart file. 
    So when the add to item button is clicked the internal id and quantity of the item is taken and fetched to the template and the the functon occurs. 
  • When a item is added in the input field and searched for the item,A dropdown is displayed near to the quantity field where we can select the item we want.Then quantity can be added and add to cart that item. 

A user can directly add an item to cart from shopping cart page itself. 
For this in shopping cart page a quick entry part is added. 
 
 

Fast order entry in the shopping cart page contains an input field where we can search for the item we want to add. 
An item can be searched with their item name and SKU. When an item is searching a dropdown field is shown from where we can select the item we want. 
Then we need to add a quantity and click Add item button to add the item to cart. 
 

Leave a comment

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