Step 10: Create service overrides

Learn how to create service overrides.

Create the configuration settings for each module using the information in the following table. You can also find these settings on the Service Overrides tab in the DR CC Config Settings spreadsheet.

Extension Setting

Extension API Class

digitalriverb2b.DRB2B_UpdateCart

Note: This extension setting was deprecated in Salesforce B2B Commerce (CloudCraze) 4.12 and greater and is no longer required.

digitalriverb2b.DRB2B_CartTaxCaluclation

Note: The misspelling is accurate. Do not change the spelling.

digitalriverb2b.DRB2B_hk_Order

Step 10a: Create a service override for the Cart Extension AP I class

This service override task sets the Shipping Amount to $0.00 for digital products.

To create a service override for the Cart Extension API class:

  1. Copy the Extension API Class value from the table above, pastedigitalriverb2b.DRB2B_UpdateCart in the Cart Extension API Class field and click Save.

Step 10b: Create a service override for the Tax Calculation API class.

Salesforce B2B Commerce (CloudCraze) does not calculate taxes out-of-the-box (OOTB). Instead, it exposes a Tax Calculation webhook which you must override. This step will implement the new business-specific tax calculations by making a call to Digital River for Tax Calculations to override the Tax Calculation webhook.

To create a service override for the Tax Calculation API class:

  1. Copy the Tax Calculation API Class value from the table above, paste

    digitalriverb2b.DRB2B_CartTaxCaluclation in the Tax Calculation API Class field and click Save.

Step 10c: Create a service override for the Order Hook settings for the DefaultStore

You need to update the CC Order status based on the Digital River Order status. To create a service override for the Order Hookup API class:

  1. Copy the Tax Calculation API Class value from the table above, paste

    digitalriverb2b.DRB2B_hk_Order in the Order Hook API Class field and click Save.

Last updated