---
schema_version: "1"
id: d4e9cc5f8518813fe1db542dd690d3a5292205eb94f6a762b19b0f8f8d65ae4f
title: Assign a Price Book or Promotion to a Specific Store in B2C Commerce
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_assigning_a_pricebook_or_promotion_specific.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_assigning_a_pricebook_or_promotion_specific.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: dafc6b7efef22a111c817a9bec2b1d87599a404735506d8468defd63fe8e6e88
description: With Store-Specific Pricing and Promotions, select a price book for each of your stores, up to 2,000. The assignments framework lets merchants and developers set qualifiers, such as a store that activates certain experiences, such as a promotion. You can also assign a promotion to a specific store. This feature is only supported via XML import. To use a site assignment, a developer must first edit the assignments XML to include a store assignment. Currently only stores can be listed as assignments.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Assign a Price Book or Promotion to a Specific Store in B2C Commerce

With Store-Specific Pricing and Promotions, select a price book for each of your stores, up to 2,000. The assignments framework lets merchants and developers set qualifiers, such as a store that activates certain experiences, such as a promotion. You can also assign a promotion to a specific store. This feature is only supported via XML import. To use a site assignment, a developer must first edit the assignments XML to include a store assignment. Currently only stores can be listed as assignments.

1. Click App Launcher ![App Launcher](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/cc/b2c_merchandiser_administrator/images/appLauncher.png), and then select **Merchant Tools** | **Site** | **Online Marketing** | **Import & Export**.
2. Click **Import** in the Assignments section.
3. Select the file with your assignments and click **Next**.
4. Consider the following sample code for assignments.
    
    ```html
    <?xml version="1.0" encoding="UTF-8"?>
    <assignments xmlns="http://www.demandware.com/xml/impex/assignment/2020-11-30">
        <assignment assignment-id="Storeassignment_A">
            <description xml:lang="x-default">Price books and promotions assigned to Store A</description>
            <description xml:lang="zh-CN">万能青年旅店</description>
            <enabled-flag>true</enabled-flag>
            <start-date>2020-11-24T00:00:00.000Z</start-date>
            <end-date>2025-11-24T00:00:00.000Z</end-date>
            <assigned-sites>
                <site>SiteGenesis</site>
                <site>SiteGenesisGlobal</site>
            </assigned-sites>
            <qualifiers match-mode="any">
                <qualifier type="STORE">Store A</qualifier>
            </qualifiers>
            <experiences>
                <pricebooks>
                    <pricebook-id>list_pricebook</pricebook-id>
                    <pricebook-id>sale_pricebook</pricebook-id>
                </pricebooks>
                <promotions>
                    <promotion-id>20%Off_promotion</promotion-id>
                </promotions>
            </experiences>
        </assignment>
    ​
    </assignments>
    ```

See the status of your file. Hit refresh until the import concludes. The import can take a few minutes.

To display store-specific experiences on the storefront, a developer must update their Salesforce Reference Architecture (SFRA) cartridge or write an Open Commerce API (OCAPI) hook to set the store in session. To set the store Id in session for SFRA, use the `setStoreIDToSession()` method. For example: `StoreMgr.setStoreIDToSession('0335')`.

In Shopper Commerce API (SCAPI), the qualifier is case-sensitive for [createShopperContext](https://developer.salesforce.com/docs/commerce/commerce-api/references/shopper-context?meta=createShopperContext) and [updateShopperContext](https://developer.salesforce.com/docs/commerce/commerce-api/references/shopper-context?meta=updateShopperContext) depending on however you’ve set the qualifier type in the XML. For example:

```
{
    "assignmentQualifiers": {
        "STORE": "0335"
    }
}
```

#### See Also

- [Configure Promotion Preferences for B2C Commerce](https://help.salesforce.com/s/articleView?id=cc.b2c_configuring_promotion_preferences.htm&release=264.0.0&type=5 "Configure many of the promotion settings as site preferences, giving you much flexibility in how your promotions are handled. These settings include Buy X/Get Y promotion behavior, discount precision, and how the tax basis is calculated for line items with discounts.")
- [Promotion Schedules in B2C Commerce](https://help.salesforce.com/s/articleView?id=cc.b2c_schedules.htm&release=264.0.0&type=5 "Schedule campaigns, A/B tests, promotions, and content slots in B2C Commerce. A scheduled experience (promotion or content slot) has to coincide with a container (campaign or A/B test), or it can't run.")
- [Tiered Discounts in B2C Commerce](https://help.salesforce.com/s/articleView?id=cc.b2c_tiered_discounts.htm&release=264.0.0&type=5 "Tier discounts so that the discount amount increases as the shopper buys more products or spends more money. Configure tiered discounts in a promotion with multiple threshold levels for conditional parameters, where the discount varies by threshold and can't be combined.")
- [B2C Commerce Promotion Compatibility](https://help.salesforce.com/s/articleView?id=cc.b2c_promotion_compatibility.htm&release=264.0.0&type=5 "Use compatibility rules to control the application of promotions. Compatibility rules prevent a shopper from qualifying for every possible promotion. Use the rank and exclusivity system attributes to control your promotion compatibility.")
- [Maximum Application for B2C Commerce Promotions](https://help.salesforce.com/s/articleView?id=cc.b2c_maximum_application_for_promotions.htm&release=264.0.0&type=5 "Limit how many times a promotion can apply per order using the maximum application limit.")
- [Specify Who Qualifies for an Experience in B2C Commerce](https://help.salesforce.com/s/articleView?id=cc.b2c_add_a_qualifier_to_an_experience.htm&release=264.0.0&type=5 "Specify who qualifies for an experience and how the promotion is redeemed using qualifiers. A qualifier can be a customer group, a coupon, or a source code. Add a qualifier to a promotion in two ways: assign the qualifier to a campaign, which affects all included promotions, or assign the qualifier to a specific promotion.")
- [Qualifying and Discounted Products in B2C Commerce](https://help.salesforce.com/s/articleView?id=cc.b2c_qualifying_and_discounted_products.htm&release=264.0.0&type=5 "Define promotions that specify qualifying products, the products shoppers buy and how much to be eligible for a discount. Also specify which products are discounted.")
- [Promotion Restrictions to Identical Products](https://help.salesforce.com/s/articleView?id=cc.b2c_restricting_promotions_to_identical_products.htm&release=264.0.0&type=5 "The restrictions setting limits product selection to identical products. When you set restrictions for a B2C Commerce product promotion rule, you configure a single product promotion that can apply to multiple products.")
- [Qualify or Disqualify Promotions Based on Active Price Book](https://help.salesforce.com/s/articleView?id=cc.b2c_qualify_disqualify_promotions_based_on_active_price_book.htm&release=264.0.0&type=5 "Include or exclude B2C Commerce products from promotions using the price book condition.")