Given the customer basket described below:
A customer has an existing basket that consists of multiple items.
One of the items is identified as a gift item by an attribute at the product line item.
The developer needs to write custom code to fetch the customer basket and then 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 ending with validatebasket.
Dw.ocapi.shop.basket.modifyGETResponse
-- missing hook --
-- missing hook --
dw.ocapi.shop.basket.validateBasket
What are the two missing hooks in the middle?
- dw.ocapi.shop.basket.shipment.afterDELETE
- dw.ocapi.shop.basket.shipment.beforePATCH
- dw.ocapi.shop.basket.shipment.beforeDELETE
- dw.ocapi.shop.baskep.shopment.beforePOST Estos indican antes de actualizar y antes de introducir
Reveal Solution Next Question