Salesforce B2C Commerce Hooks

•
22
•

Implements and manages business logic extensions in Salesforce B2C Commerce using HookMgr and custom extension points.

This skill provides specialized guidance for developing and registering hooks within the Salesforce B2C Commerce environment, covering OCAPI/SCAPI, system, and custom extension points. It simplifies the process of configuring hooks.json, managing script implementations, and correctly handling dw.system.Status return values to prevent common pitfalls like unintentionally skipping system calculations. By providing patterns for payment, order, and shipping hooks, it ensures developers can safely extend core commerce functionality while maintaining system integrity and API performance.

Características Principales

0122 GitHub stars
02Custom extension point creation using the HookMgr API
03System hook implementation for order, shipping, and tax calculations
04Best practices for dw.system.Status and return value management
05Comprehensive OCAPI/SCAPI hook registration and configuration
06Support for passing data between hooks via request.custom

Casos de Uso

01Implementing custom payment authorization and validation logic
02Extending standard OCAPI/SCAPI responses with custom data fields
03Automating business logic during order creation or basket updates