Loading
B2C Commerce Release Notes
beforePOST_v2 replaces the dw.ocapi.shop.basket.beforePOST Hook

beforePOST_v2 replaces the dw.ocapi.shop.basket.beforePOST Hook

With the OCAPI 22.10 release, dw.ocapi.shop.basket.beforePOST_v2 replaces the nonfunctional dw.ocapi.shop.basket.beforePOST hook.

Why: The original hook had these issues:

  • Using an incorrect input type (created basket, which isn’t available before the basket creation instead of the basket request document).
  • Using an incorrect execution order (hook was executed after the creation of the basket, which is too late for a before hook to function).

Use the new beforePOST customization hook, as using the original hook is highly discouraged.

 
Wordt geladen
Salesforce Help | Article