Skip to main content

Configure Price Books

Learning Objectives

After completing this unit, you’ll be able to:

  • Explain how Salesforce B2C Commerce determines which price book to use.
  • List the permissions required to create, modify, and delete price books.
  • Describe how Read-Only Price Books help merchants.
  • Explain how site assignment works with price books.
  • Explain why you would use price tables.

What’s a Price Book?

Salesforce B2C Commerce price books contain price data for products based on a currency. You can create a price book manually in Business Manager or import price data from an enterprise resource planning (ERP) system or another financial system. Prices are not generally considered product data per se. The Read-Only Price Books feature offers a high-speed import option. 

Brandon Wilson, senior merchandiser at Cloud Kicks, a high-end custom sneaker retailer, is ready to configure prices. He starts by learning some basic principles.

Brandon Wilson, Cloud Kicks merchandiser

You must have products already defined to create price books. Each product must have a price defined for a quantity of one (1) in a price book that’s active for the site. Computed prices are derived from this price.

You can configure a price continuously or for a specific period, such as for the duration of a sale. Many price books can be active. B2C Commerce chooses which price to use based on predefined rules. If two price books are assigned to a site, with overlapping valid periods, the price book with the most recent Valid From date is active. A price book with a specific active and valid period wins over a continuous price book.

It’s important to maintain a set of fixed price books with fixed price book names. You can use the merge or replace import mode to update prices as they change, making updates a lot faster. Deleting and recreating price books in a regular cadence slows down the system, affecting the shopper experience.

Permissions

When Brandon first looked at price books, he could search for price book data and view details, but couldn’t create, modify, or delete price books. He asked Linda Rosenberg, the admin, for write access and the functional permissions: Manage_PriceBooks (all price books globally) and Manage_Site_PriceBooks.

Linda Rosenberg, Cloud Kicks admin

Note

If you have mixed permission to access one module (via different roles), the higher-level access is granted.

Site Assignment

Brandon defines price books for an entire organization, but still needs to assign individual price books to sites for them to be active on those sites. He can assign one or more price books to a site, and he can assign a price book to one or more sites in an organization.

Currency is important. You can assign more than one price book to a site as long as they have the same currency. If the multi-currency feature is enabled, you can assign multiple price books to a site as long as each currency is enabled on the site. While you can assign a price book that has a not-enabled currency, B2C Commerce will ignore it when determining prices on the site.

Create a Price Book

Brandon wants to create two price books:

  • main-list-price: contains the retail prices for all products on the site
  • accessory-sale-price-list: contains prices for certain accessories.

Instead of specifying the prices for all products in the accessory-sale-price-list price book, Brandon specifies just the sale prices for accessories that are on sale. During price lookup, B2C Commerce looks first at the accessory-sale-price-list price book, and then at the main-list-price price book. In this scenario, the accessory-sale-price-list price book is “based on" the main-list-price price book.

In this module, we assume you are a B2C Commerce merchandiser with the proper permissions to perform these tasks. If you’re not a B2C Commerce merchandiser, that’s OK. Read along to learn how your merchandiser would take these steps in a staging instance. Don’t try to follow our steps in your Trailhead Playground. B2C Commerce isn’t available in the Trailhead Playground.

If your site uses B2C Commerce but you don’t have access, contact your administrator for login credentials. If you have a B2C Commerce sandbox instance, you can try out these steps on that instance. If you don’t have a sandbox and you’re a customer or partner developer, ask your manager if there is a sandbox that you can use.

Here’s how to create a price book.

  1. Open Business Manager.
  2. Select site > Merchant Tools > Products and Catalogs > Price Books.
  3. Click New.
    • Enter the ID: main-list-price-cc
    • Enter the name: Main List Price - Cloud Kicks
    • Select Activated.
    • Select the currency: US Dollar
    • Click Apply.
      Create a new price book in Business Manager.
  4. The tabs are now active.
  5. Click the Attributes tab. Here’s where you specify custom attributes that you’ve created for the PriceBook system object.
  6. Click the Site Assignments tab.
    • Select one or more sites and click Apply.
  7. Return to the Price Books page and create the accessory-sale-price-list price book.
    • Enter the ID: accessory-sale-price-list
    • Enter the name: Accessory Sale Price - Cloud Kicks
    • Select Activated.
    • Select the currency: US Dollar
    • Enter the “based on” price book: main-list-price-cc
    • Click Apply.

Read-Only Price Books

The Read-Only Price Book feature provides frequent and fast price imports to merchants who use an ERP or another data import source. Read-Only Price Books:

  • Are XML-based.
  • Import a minimum of 60% faster than a standard price book.
  • Don’t require product indexing for prices to take effect in the search index.
  • Can hold up to 300 million prices.

Once you switch to Read-Only Price Books, the price data is read-only. It uses a storage technology that’s separate from B2C Commerce. You edit prices in the ERP and then reimport the data into Business Manager. In an emergency, you can create an editable price book in Business Manager and rebuild the search indexes. However, you lose that awesome performance. Make sure you reimport the read-only price data and delete the editable data as soon as is practical.

Here's how to import Read-Only Price Books.

  1. Turn on the feature.
    • Select Administration > Global Preferences > Feature Switches.
    • Click Read and agree to legal requirements.
    • Select the agreement checkbox and click I Agree.
  2. Enable the feature.
    • Select Administration > Global Preferences > Import and Export.
    • Enable the Import All Prices Books as Read Only preference.
  3. Reimport the price books to the staging instance, then replicate to production. This is a best practice.

Price Tables

Volume-based price tables enable merchants to specify lower prices for higher quantities. You can create multiple price tables for each product ID (or SKU) in a price book. Each table must have a unique start date and a different and valid time period. An empty time period (null) represents a continuous price.

Brandon wants to create price tables for kid’s sports apparel so that schools and club teams can order with price breaks. He creates these products using the instructions in the Salesforce B2C Commerce Catalogs, Categories, and Products module.

Product

1–5 units

6–10 units

11 or more units

bar-shorts (gymnastics)

20

15

10

sports-shorts

15

12

8

leotard

20

16

10

t-shirt

10

8

6

Here’s how he creates a price table.

  1. Select Merchant Tools > Products and Catalogs > Price Books.
  2. Select a price book: main-list-price-cc
    The prices will be in the currency of this price book.
  3. Click the Price Definitions tab.
  4. Enter *shorts*, and click Find.
  5. Click All, so you can see all the products with shorts in their name.
    • Locate the bar-shorts products, and enter 20 as the price for each of them.
    • Locate the sports-shorts product and enter 15 as the price for them.
    • Click Apply. Now you can add the first set of volume prices.
  6. For the bar-shorts product:
    • Enter 6 in the empty field beneath the 1.00 to create the first volume limit.
    • Enter 15 for the price.
    • Do this for the other bar-shorts products and click Apply.
    • Enter 11 and 10 for the next volume limits and prices and click Apply.  Create a price table in Business Manager.

Each time you click Apply, another empty row appears in the price table for each product for which you entered a price.

Note

Important: If you navigate to another page before clicking Apply, B2C Commerce doesn’t save the prices.

Here’s how to define a time period.

  1. Click Continuous in the bar-shorts-1 product section.
    Define price activation dates in Business Manager.
  2. Enter From and To dates and times.
  3. Click Apply.
  4. To return to a continuous period, click Clear beside the From and To fields and click Apply.

Here’s how to create multiple price tables for a product.

  1. Click the Add Price Table button beside bar-shorts-1.
  2. When the window opens, click Create.
  3. Now you can add price information to identify the price tables, and change the prices in one of them.
    Create a second price table for the same product.

Next Steps

In this unit, you learned how B2C Commerce determines which price book to use, how Read-Only Price Books help merchants, and how site assignment works. Next, learn how to manage product images.

Resources

Keep learning for
free!
Sign up for an account to continue.
What’s in it for you?
  • Get personalized recommendations for your career goals
  • Practice your skills with hands-on challenges and quizzes
  • Track and share your progress with employers
  • Connect to mentorship and career opportunities