ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 74 - Certified B2C Commerce Developer discussion

Report
Export

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 modifyGETResponse and ending with validateBasket.

A.
dw.ocapi.shop.basket.modifyGETResponse
Answers
A.
dw.ocapi.shop.basket.modifyGETResponse
B.
-- missing hook --
Answers
B.
-- missing hook --
C.
-- missing hook --
Answers
C.
-- missing hook --
D.
dw.ocapi.shop.basket.validateBasketWhat are the two missing hooks on the middle? (Choose two.)
Answers
D.
dw.ocapi.shop.basket.validateBasketWhat are the two missing hooks on the middle? (Choose two.)
E.
dw.ocapi.shop.basket.shipment.afterDELETE
Answers
E.
dw.ocapi.shop.basket.shipment.afterDELETE
F.
dw.ocapi.shop.basket.shipment.beforePOST
Answers
F.
dw.ocapi.shop.basket.shipment.beforePOST
G.
dw.ocapi.shop.basket.shipment.beforePATCH
Answers
G.
dw.ocapi.shop.basket.shipment.beforePATCH
H.
dw.ocapi.shop.basket.shipment.beforeDELETE
Answers
H.
dw.ocapi.shop.basket.shipment.beforeDELETE
Suggested answer: B, D

Explanation:

Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC4/index.jsp?topic=%2Fcom.demandware.dochelp%2FOCAPI%2Fcurrent%2Fusage%2FHooks.html

asked 23/09/2024
Venkat Burri
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first