Pre-Winter Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

Salesforce Certified B2C Commerce Developer Comm-Dev-101 Question # 25 Topic 3 Discussion

Salesforce Certified B2C Commerce Developer Comm-Dev-101 Question # 25 Topic 3 Discussion

Comm-Dev-101 Exam Topic 3 Question 25 Discussion:
Question #: 25
Topic #: 3

There is a business requirement that a custom controller in app_custom_my_cartridge invokes the calculateTax(basket) function of the dw.order.calculateTax hook that is defined in app_storefront_base. How can the developer implement this call?


A.

Use dw.system.HookMgr.callHook( ' dw.order.calculateTax ' , ' calculateTax ' , {basket:currentBasket});


B.

Add the location of the dw.order.calculateTax hook to hooks.json, and then use dw.system.HookMgr.callHook( ' dw.order.calculateTax ' , ' calculateTax ' , {basket:currentBasket});


C.

Add the location of the dw.order.calculateTax hook to package.json, and then use dw.system.HookMgr.callHook( ' dw.order.calculateTax ' , ' calculateTax ' , {basket:currentBasket});


Get Premium Comm-Dev-101 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.