Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

ccrz.cc_api_ShippingAndHandling

Implement subscriber-defined behavior for populating the available shipping methods during checkout. On the storefront, the Checkout page calls this extension point class before rendering shipping options.

Compatibility

This reference applies to:

Release Managed Package Version API Version
B2B Commerce for Visualforce Winter ’21 4.13 12
B2B Commerce for Visualforce Spring ’20 4.12 11
B2B Commerce for Visualforce Summer ’19 4.11 10
B2B Commerce for Visualforce Spring ’19 4.10 9
B2B Commerce for Visualforce Summer ’18 4.9 8

Extension Class Setting in CC Admin

If you extend the default version of this class, update your storefront settings in CC Admin. Select your storefront (1), and then select Shipping in the Integrations section of the Storefront Settings menu (2). Update the Shipping Integration API Class field (3) with your custom class name, prefixed with c., such as c.cc_example_api_ShippingAndHandling.

Update the Shipping Integration API Class field in your storefront settings

For more help with creating an extension, including considerations and conventions, see Extend a Global Extension Point Class.

Tip

The default implementation of this class is intended for demo purposes only, and not meant to be used in a production org. This class provides a starting point that you can extend for implementing the shipping options that are specific to your solution's unique requirements.

Important

The managed package includes an example extension of the default ccrz.cc_api_ShippingAndHandling class. The extension, named fixedShippingThreeOptions, provides three flat-rate shipping options:

  • Slow shipping for $5.00
  • Fast shipping for $10.00
  • Fastest shipping for $20.00

Tip

Front-End Input

On the storefront, a buyer selects a shipping method from the Shipping Method picklist on the Checkout page. For help with configuring the shipping options on the Checkout page, see Specify Shipping Options for Standard Checkout.

Methods