Loading
Salesforce B2B Commerce
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Configure Pricing Procedure Plans for B2B Stores

          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

          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.
            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.
          2. From your store, go to Settings | Store.
          3. Go to the Pricing tab.
          4. Turn on Pricing Procedure Plan.
            Turning it on enables this feature for all stores in your org. However, procedure plans run only in stores where you assign them.
          5. Click Settings icon and select Setup.
          6. In the Quick Find box, enter Procedure Plan Definition Templates, and select Procedure Plan Definition Templates.
          7. Select the Default Commerce Pricing Procedure Plan Definition Template template.
          8. 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.
          9. 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.
          10. Use Apex sections to run custom pricing logic. You can include multiple Pricing and Apex sections.
            Note
            Note For information about creating Apex hooks for pricing, see Customize B2B Store Pricing with Apex Hooks.
            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.
          11. If you added multiple sections, click Manage Sections. Drag the sections to set their exact execution order.
            Commerce Pricing Procedure Plan Definition Template
          12. 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.
          13. From Setup, in the Quick Find box, enter Procedure Plan Definitions, and select Procedure Plan Definitions.
          14. Select the procedure plan that you created in the previous step.
          15. Click Activate and confirm.
            Use only activated procedure plans in your stores.
          16. From your store, go to Settings | Store and then select the Pricing tab.
          17. 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
          18. Click Save.
           
          Loading
          Salesforce Help | Article