---
schema_version: "1"
id: 879ce5159d32fd22b0599324d671991f349e4d89f5cddccb5383d2c89aefd925
title: Configure Pricing Procedure Plans for B2B Stores
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/comm_configure_pricing_procedure_plans.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.comm_configure_pricing_procedure_plans.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 20fde7d664a5f2e86b3e68bbcb2d4b45de4ebab61701144658760ff2c11ca528
description: Configure pricing procedure plans to customize how pricing is calculated in your B2B stores. Create a procedure plan from the default Commerce procedure plan template and then customize it with your own context definitions, pricing procedures, and Apex hooks.
products:
  - Commerce
  - B2B Commerce
release: "264"
---
# Configure Pricing Procedure Plans for B2B Stores

Configure pricing procedure plans to customize how pricing is calculated in your B2B stores. Create a procedure plan from the default Commerce procedure plan template and then customize it with your own context definitions, pricing procedures, and Apex hooks.

### 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. Turn on and configure Advanced Pricing for Commerce Powered by Revenue Cloud. For details, see [Configure Advanced Pricing for Commerce Powered by Revenue Cloud](https://help.salesforce.com/s/articleView?id=commerce.comm_advanced_pricing_for_commerce_stores.htm&language=en_US&type=5).
    
    To extend the context definitions on the account and product nodes to influence pricing, turn on Pricing Context Extensibility. See [Extend the Pricing Context for B2B or D2C Stores](https://help.salesforce.com/s/articleView?id=commerce.comm_pricing_context_extension.htm&language=en_US).
2. Click ![Settings icon](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**.
3. In the Quick Find box, enter `Procedure Plan Definition Templates`, and select **Procedure Plan Definition Templates**.
4. Select the **Default Commerce Pricing Procedure Plan Definition Template** template.
5. Select your context definition. By default, the Commerce context definition is selected. If you created a custom context definition, select it. Use an extended context definition based on the default context definition. Cloned context definitions aren't supported.
6. In the Procedure Plan Sections area, select a pricing procedure that uses the same context definition as the one you selected in the previous step.
    
    If a default Commerce pricing procedure exists, it's added automatically. Otherwise, manually select the pricing procedure you want to use. Add only one pricing procedure section per plan.
7. Use Apex sections to run custom pricing logic. You can include multiple Pricing and Apex sections.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-commerce-comm-264-0-0-production-enus/d863e308-482a-4dfa-8d20-2a94737d394a/images/icon_note.png)
    
    Note For information about creating Apex hooks for pricing, see [Customize B2B Store Pricing with Apex Hooks](https://help.salesforce.com/s/articleView?id=commerce.comm_customize_pricing_apex_hooks.htm&release=264.0.0&type=5 "To support unique pricing scenarios, add custom Apex logic to your pricing procedure plans. You can use Apex hooks to apply custom business logic that modifies the pricing context before or after your pricing procedure runs. Apex hooks are custom code that run at specific points in the pricing procedure plan.").
    
    1. In the Procedure Plan Sections area, click **Add**.
    2. Select **Standard** type.
    3. For **Section Type**, select **Apex**.
    4. Enter a name for your section.
    5. In the section details, set **Phases** to **Pricing**, **Resolution Type** to **Default**, and select your Apex class.
    6. Click **Save**.
8. If you added multiple sections, click **Manage Sections**. Drag the sections to set their exact execution order.
    
    ![Commerce Pricing Procedure Plan Definition Template](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-commerce-comm-264-0-0-production-enus/d863e308-482a-4dfa-8d20-2a94737d394a/comm/images/b2b_comm_pricing_procedure_plan.png)
9. Save the template as a new procedure plan definition.
    
    The newly created procedure plan definition is inactive and appears in the Procedure Plan Definitions list.
10. From Setup, in the Quick Find box, enter `Procedure Plan Definitions`, and select **Procedure Plan Definitions**.
11. Select the procedure plan that you created in the previous step.
12. Click **Activate** and confirm.
    
    Use only activated procedure plans in your stores.
13. From your store, go to **Settings** | **Store** and then select the Pricing tab.
14. In **Pricing Procedure Plan**, select your newly activated procedure plan. The selected plan now applies to the current store.
    
    If you don't select a procedure plan, the org's default pricing procedure is used.
    
    ![Pricing Settings with Store-Specific Procedure Plan](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-commerce-comm-264-0-0-production-enus/d863e308-482a-4dfa-8d20-2a94737d394a/comm/images/b2b_comm_select_procedure_plan.png)
15. Click **Save**.

#### See Also

- [Pricing Procedure Plans for B2B Stores](https://help.salesforce.com/s/articleView?id=commerce.comm_pricing_procedure_plans.htm&release=264.0.0&type=5 "Use procedure plans to customize how prices are calculated in your B2B store. A procedure plan is a framework that combines your pricing procedure with optional custom code (Apex hooks). The procedure plan defines the sequence that your custom logic and pricing procedure follow to calculate the final price.")
- [Customize B2B Store Pricing with Apex Hooks](https://help.salesforce.com/s/articleView?id=commerce.comm_customize_pricing_apex_hooks.htm&release=264.0.0&type=5 "To support unique pricing scenarios, add custom Apex logic to your pricing procedure plans. You can use Apex hooks to apply custom business logic that modifies the pricing context before or after your pricing procedure runs. Apex hooks are custom code that run at specific points in the pricing procedure plan.")