Modifying product quantity
A store associate can modify the product quantity for an order.
The Edit order line quantity - ISF000049 resource permission is required to
modify the product quantity in the View cart page.
If the product has IsSerialTracked set to Y, the edit quantity
field is disabled.
The following APIs are called to implement the modification of product quantity:
- When the quantity of a product added to cart is modified, the
getItemAvailabilityForStoreAPI is called to check for product availability. - If the product is not available, an appropriate message is displayed inline. If the product is
available, the
modifyFulfillmentOptionsAPI is called to update the quantity. - Modifying the quantity of a product can affect other order lines or the order at the header
level. When the
modifyFulfillmentOptionsAPI is called to update the quantity of an order line, the API also returns all the order lines that are modified. - The
getCompleteLineListAPI is called for modified order lines to get the extra attributes that are needed to update the displayed information. - The
getCompleteOrderDetailsAPI is called to retrieve the updated order details such as order total and refresh the page.