Let customers ship items in one order to multiple addresses in a B2B store or a Pay Now site. At checkout, customers can split a single cart into multiple shipments. You can’t use split shipping with managed checkout or with digital or subscription products.
Required Editions
-
Enable split shipping.
-
At the top of the page, click
and select Developer Console.
-
From Debug, click Open Execute Anonymous Window.
An Apex editor window opens.
-
Copy this code snippet into the Apex editor window.
ID storeId = '0ZExx0000000000000'; // !! REPLACE WITH YOUR STORE ID !! WebStore store = [ select id, OptionsSplitShipmentEnabled FROM WebStore WHERE id = :storeId LIMIT 1]; store.OptionsSplitShipmentEnabled = true; update store; -
Replace the store ID with your 18-character ID.
You can find your ID in your store’s home page URL. It begins with “webStoreId=”.

- Execute the code, and return to your store’s home page.
-
At the top of the page, click
-
If your store was created before the Spring ’24 release, update your store’s shipping
integration Apex class.
Before implementing this change, consult with your developer so that you don’t overwrite custom modifications made to this class.
-
At the top of the page, click
and select Setup.
- In the Quick Find box, enter Apex Classes, and then select Apex Classes.
- Find the B2CDeliverySample class, and click Edit.
- From GitHub, copy the code from the B2CDeliverySample.cls code block.
- Paste the code into your org’s B2CDeliverySample Apex Class window.
- Save your changes.
-
At the top of the page, click
- If you have an Aura store created before the Spring ’24 release and the Cart Calculate API is disabled, update your store’s price check integration to use standard pricing.
To increase the delivery group limit for your Salesforce org, contact your Salesforce administrator.
