---
schema_version: "1"
id: 49292093f89df1e7e45f98fda4c90b743cb13c251e5e91a34e59e631bada4252
title: Enable Shipping to Multiple Addresses for Custom Checkout
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/comm_enable_split_shipping_for_commerce_stores.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.comm_enable_split_shipping_for_commerce_stores.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 05a57868331d52fbe80033da67264d249b06b3cdf949d9bc539444457b1692d1
description: 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.
products:
  - Commerce
  - B2B Commerce
release: "264"
---
# 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.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=commerce.comm_editions.htm&amp;language=en_US" target="_blank">View supported editions</a>.</td></tr></tbody></table>

[Which Salesforce Commerce Product Do I Have?](https://help.salesforce.com/s/articleView?id=commerce.comm_what_product.htm&language=en_US)

1. Enable split shipping.
    1. At the top of the page, click ![Setup](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-commerce-comm-264-0-0-production-enus/d863e308-482a-4dfa-8d20-2a94737d394a/comm/images/comm_setup_icon_no_border.png) and select **Developer Console**.
    2. From Debug, click **Open Execute Anonymous Window**.
        
        An Apex editor window opens.
    3. Copy this code snippet into the Apex editor window.
        
        ```javascript
        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;
        ```
    4. 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=”.
        
        ![Webstore ID highlighted in a store URL.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-commerce-comm-264-0-0-production-enus/d863e308-482a-4dfa-8d20-2a94737d394a/comm/images/comm_webstore_ID.png)
    5. Execute the code, and return to your store’s home page.
2. 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.
    
    1. At the top of the page, click ![Setup](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-commerce-comm-264-0-0-production-enus/d863e308-482a-4dfa-8d20-2a94737d394a/comm/images/comm_setup_icon_no_border.png) and select **Setup**.
    2. In the Quick Find box, enter Apex Classes, and then select **Apex Classes**.
    3. Find the B2CDeliverySample class, and click **Edit**.
    4. From GitHub, copy the code from the B2CDeliverySample.cls code block.
        
        [https://github.com/forcedotcom/commerce-on-lightning/blob/develop/examples/b2c/checkout/integrations/classes/B2CDeliverySample.cls](https://github.com/forcedotcom/commerce-on-lightning/blob/develop/examples/b2c/checkout/integrations/classes/B2CDeliverySample.cls)
    5. Paste the code into your org’s B2CDeliverySample Apex Class window.
    6. Save your changes.
3. 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.
    1. In the navigation sidebar, select a store from the Store dropdown.
    2. Select **Settings** | **Store**.
    3. 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 ![Dropdown arrow](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-commerce-comm-264-0-0-production-enus/d863e308-482a-4dfa-8d20-2a94737d394a/comm/images/1cb2c_edit_action_arrow.png) and select **Unlink**.
    4. Save your changes.

To increase the delivery group limit for your Salesforce org, contact your Salesforce administrator.

#### See Also

- [Customize Split Shipping for Commerce Stores](https://help.salesforce.com/s/articleView?id=commerce.customize_split_shipping_for_commerce_stores.htm&release=264.0.0&type=5 "After you enable shipping to multiple addresses, use Experience Builder to customize how you collect split shipment details from your customers on the Split Shipment page of a B2B store. You can customize split shipping only if your store uses custom checkout. You can’t use split shipping with managed checkout or with digital or subscription products.")
- [Design Your Checkout Page in a Commerce Store](https://help.salesforce.com/s/articleView?id=commerce.comm_edit_checkout_sections_for_a_b2c_store.htm&release=264.0.0&type=5 "Use a preset layout and customize its components, or design a layout using sections and components to guide customers through the checkout process in a B2B store. You can customize checkout only if your store uses custom checkout. If your store uses managed checkout, you can’t customize the Checkout page.")
- [Define Apex Classes](https://help.salesforce.com/s/articleView?id=platform.code_define_package.htm&type=5&language=en_US)