Adding products to cart by using the Check out portlet
You must have the
Order capture (
ISF000048) resource permission
to view this portlet.
getCompleteItemListAPI is called to get the product details of the scanned product or serial number.
- In the response received, the value for
KitCodevalue is checked. If the
KitCodevalue is equal to
DPK, the product cannot be added to cart and an error message is displayed.
Similarly, the product cannot be added to cart, if
- Then, the
getItemAvailabilityForStoreAPI is called to check the availability of the product for the default delivery method, which is Carry, if the
AllowCashAndCarryLinesrule is set to
true. Else, the default delivery method is taken as Ship. If the product is not available for the default delivery method, the Product details page is opened.
- If the product is available for the default delivery method, the
createOrderAPI is called to create a new order .
getCompleteItemListAPI is enhanced to return the inventory details of the scanned serial number in the
SIMSerialDetailelement. This is applicable if you use Sterling Inventory Visibility to manage your inventory. This element is based on the template and is returned only when you scan the serial number.
If you use Sterling Global Inventory
Visibility to manage your inventory, the serial details are read from the
<SerialDetail/> element inside inventory.
If multiple translations are available when a product is scanned, an error is shown in the UI.
When your scan of the product or the serial number is successful, the View cart page is displayed.