Which snippet works correctly when updating the package.json file to point to the hook file for a cartridge?
A developer wants to configure the following products so that same search results are returned regardless of the search term used. The search term can be bag, purse, pocketbook, and tote. How should the developer configure this?
A developer implements an Open Commerce API call to add products to a basket. Given the following resource configuration:
{
" resource_id " : " /baskets/** " ,
" methods " :[ " get " ],
" read_attributes " : " (**) " ,
" write_attributes " : " (**) "
}
Which modification allows the requests to successfully execute?
A developer is is configuring Shipping Methods on a storefront. Which of the following considerations must be kept in mind while configuring shipping methods.
What is the action needed for the content slot to work as intended?
Given this customer basket information:
• 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.
dw.ocapi.shop.basket.modifyGETResponse
-- missing hook --
-- missing hook --
dw.ocapi.shop.basket.validateBasket
What are the two missing hooks in the middle?
What should a developer implement to enhance the functionality of an existing controller route?
Given the sandbox with:
• Service configured and assigned to its profile and credential
• A code version that uses that service
And given the requirement to limit the number of success or error calls the code can perform to a restricted number of calls per second. Which configuration should the developer perform?
What step should a developer take to troubleshoot code changes not appearing on the Storefront?
A developer needs to update the package.json file so that it points to the hook file for a cartridge, using the hooks keyword.
Which snippet works correctly when added to the file?