Salesforce B2C-Commerce-Developer Question Answer
Given the customerbasket described below:
A customer has an existing basket that consists of multiple items.
One of the items is identified as a gift ítem by an attribute at the product line ítem.
The developer needs to write custom code to fetch the customer basket andthen modify the basket based
upon the items in the cart. If the basket contains any gift items, modify the basket and create a separate
shipment for the gift item.
Four hooks are required to make the modification, beginning with modifyGETRespone and endingwith
validatebasket.
Dw.ocapi.shop.basket.modifyGETResponse
-- missing hook –
-- missing hook --
dw.ocapi.shop.basket.validateBasket
What are the two missing hooks in the middle?