---
schema_version: "1"
id: ed5d2728148d68496334949f8163c3db77d11d2f70624ee9fec12b8c25f3e69e
title: Price Lookup Example for B2C Commerce
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_price_lookup_example.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_price_lookup_example.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 336b93aab4d7aa30bfedcca79e12441ef526b9df1356b01cb8f5fd29df075bf4
description: The following scenario illustrates the lookup of an effective sales price for a certain set and configuration of price books associated with a site.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Price Lookup Example for B2C Commerce

The following scenario illustrates the lookup of an effective sales price for a certain set and configuration of price books associated with a site.

The following price books are defined and associated with the same site:

    
| Price Book | ID | Locale | Active | Currency |
| --- | --- | --- | --- | --- |
| A | ListPrices | de\_DE | yes | EUR |
| B | StorePrices | de\_DE | yes | EUR |
| C | AmazonPrices | de\_DE | yes | EUR |
| D | ListPrices | de\_AT | yes | EUR |
| E | StorePrices | de\_AT | yes | EUR |
| F | AmazonPrices | de\_AT | yes, Based on AllAffiliates | EUR |
| G | AllAffiliates | de\_AT | yes | EUR |

Given these example price books, with these storefront entry points, the price lookup includes these price books:

  
| Storefront | Locale | Price Books |
| --- | --- | --- |
| Site | de\_DE | A and B |
| Entering via Amazon | de\_DE | A, B, and C |
| Site | de\_AT | D and E |
| Entering via Amazon | de\_AT | D, E, F, and G (G is the parent price book of F) |

**Customer group discount**

The List Price book for the product is defined with the price 10.99 for a quantity of one. The price table for the product in the List price book is defined with volume-based discounts (and is in effect) as follows:

  
| Quantity | Price | Note |
| --- | --- | --- |
| 2 | 9.49 | Pay 9.49 each if you buy two items. |
| 5 | 8.49 | Pay 8.49 each if you buy five items. |

A Sale price book contains a price table for the product listing volume-based discounts as follows, with no price defined for a quantity of one:

  
| Quantity | Price | Note |
| --- | --- | --- |
| 2 | 8.49 | Pay 8.49 each if you buy two items. |
| 5 | 7.49 | Pay 7.49 each if you buy five items. |

When a customer orders, the prices appear according to the following rules:

- For a quantity of one, the price from the List price book automatically appears as the best price. This price is used because there isn't another price defined for a quantity of one.
- For a quantity of one, the additional volume-based discount price information shown is taken from the Sale price book price table. This discount price information is used because it's the best price for the volume-based discount.
- For a quantity of two or more, the best price is delivered from the Sale price book price table, because those prices are the cheapest.
- Based On price book contains the best price.

The List price book defines the price for the product as $10.99 for a quantity of one. The Sale price book is defined with volume-based discounts (and is in effect) as follows:

  
| Quantity | Price | Note |
| --- | --- | --- |
| 1 | 9.99 | Pay 9.99 for one item. |
| 2 | 9.49 | Pay 9.49 each if you buy two items. |
| 5 | 8.49 | Pay 8.49 each if you buy five items. |

There’s a List price book defined (and in effect) that contains a price table for the product that lists volume-based discounts as follows:

  
| Quantity | Price | Note |
| --- | --- | --- |
| 2 | 8.49 | Pay 8.49 each if you buy two items. |
| 5 | 7.49 | Pay 7.49 each if you buy five items. |

There’s a Based On price book defined (and in effect) that contains a price table for the product that lists volume-based discounts as follows:

  
| Quantity | Price | Note |
| --- | --- | --- |
| 2 | 7.49 | Pay 7.49 each if you buy two items. |
| 5 | 6.49 | Pay 6.49 each if you buy five items. |

When a customer orders, the prices appear according to the following:

- For a quantity of one, the best price appears as $9.99 because it’s the cheapest price defined for a quantity of one.
- For a quantity of one, the additional volume-based discount information shown comes from the Based On price book because it’s the lowest price found.
- For a quantity of greater than one, the best price comes from the Based On price book because it has the lowest prices.
- For a quantity of greater than one, the additional volume-based discount information shown comes from the Based On price book, because it contains the lowest prices.