Enable Shipping to Multiple Addresses for Custom Checkout
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.
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.
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.
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.
In the navigation sidebar, select a store from the Store dropdown.
Select Settings | Store.
To choose a custom pricing provider, on the Price Check tab, click Link
Integration and select Standard Pricing. To
unlink an existing provider, click the and select Unlink.
Save your changes.
To increase the delivery group limit for your Salesforce org, contact your Salesforce
administrator.
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.