Adding products to cart by using the Check out portlet
The store associate can scan the product and add the product directly to the cart by
using the Check out portlet.
You must have the Order capture
(ISF000048
) resource permission
to view this portlet.
When a product is added to the order, the following actions and validations are performed:
- The
getCompleteItemList
API is called to get the product details of the scanned product or serial number. - In the response received, the value for
KitCode
value is checked. If theKitCode
value is equal toBUNDLE
,PK
, orDPK
, the product cannot be added to cart and an error message is displayed.Similarly, the product cannot be added to cart, if
IsModelItem
isY
. - Then, the
getItemAvailabilityForStore
API is called to check the availability of the product for the default delivery method, which is Carry, if theAllowCashAndCarryLines
rule is set totrue
. 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
createOrder
API is called to create a new order .
Note: The
getCompleteItemList
API is enhanced to return the inventory details of
the scanned serial number in the SIMSerialDetail
element. This is applicable if you
use Sterling Intelligent Promising 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.