Universal Containers is preparing their storefront to use Open Commerce APIs (OCAPI).
To which hook should the Digital Developer move taxation logic to ensure consistent order totals within B2C Commerce?
A. dw.ocapi.shop.order.validateOrder
B. dw.ocapi.shop.basket.calculate
C. dw.ocapi.shop.basket.afterPostShipment
D. dw.ocapi.shop.order.afterPOST
Its B.
https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-csc-order-calculation.html
It should be B
SFCC DOC:
Order Calculation
Customer Service Center uses the same order calculation routines for pricing, taxes, shipping charges, and promotions as B2C Commerce. The current SiteGenesis application contains a registration for basket (order) calculation.
The calculation logic location depends on the version of SiteGenesis Storefront Core cartridge used by the B2C Commerce site.
If you’re using the current SiteGenesis version, the calculation logic is located in the hook and the script calls:
dw.system.HookMgr.callHook( “dw.ocapi.shop.basket.calculate”, “calculate”, pdict.Basket );
it should be C: dw.ocapi.shop.basket.afterPostShipment
it should be C: dw.ocapi.shop.basket.afterPostShipment
dw.ocapi.shop.basket.calculate doesn’t exist
It exists