Salesforce B2B Commerce – Override a Standard Product Detail Page

Salesforce B2B Commerce has some limitations in that it does not allow to directly edit or copy templates to override some of the content of modules like Mini Cart, Product Details page, etc. To override these modules, template code needs to be taken from the source code and the modification needs to be done there.

Salesforce B2B Commerce has some limitations in that it does not allow to directly edit or copy templates to override some of the content of modules like Mini Cart, Product Details page, etc. To override these modules, template code needs to be taken from the source code and the modification needs to be done there. 

Step 1: Visit the store and navigate to your product detail page. 

Step 2: View the source of the page and copy the below code  

Step 3: Create a Visualforce Page with the copied source code. 

Step 4: Go to CC Admin Tab 

Step 5: Click on Default Store 

Step 6: Click on Configuration Settings 

Step7: Click the New button 

Step 8: Create a new module to enable the custom functionality 

  1. Module Name 
  1. Configuration Type 
  1. Name of the B2B Page 
  1. Module Status 

Step 9: Create a new module to override the standard functionality of the page. 

  1. Module Name 
  1. Configuration Type 
  1. Name of the B2B Page 
  1. Custom VF page name which we created by copying the source code. 

Note: Only one module with the same type can be placed on the same page. 

Step 10: Go to CC Admin Tab and click on Configuration Cache Management. Create a New Build to see the modified content in the Product Detail Page 

Step 11: Give a name to the new Build and Activate it. Your changes should be reflected now. 

  

   

About MST

At MST Solutions our cornerstone is to adapt, engage and create solutions which guarantee the success of our clients. The talent of our team and experiences in varied business verticals gives us an advantage over other competitors.

Recent Articles

Harnessing Generative AI in Healthcare Insurance: Streamlining Operations and Enhancing Member Insights

Healthcare insurance providers are navigating new ground and capitalizing on new opportunities made possible through artificial intelligence. AI can be utilized to lower costs for payers and improve the member experience as well as the overall health and well-being of members, leading to greater member satisfaction and improving trust and reputation for the payer’s brand.

Read Article »

Work with us.

Our people aren’t just employees, they are key to the success of our business. We recognize the strengths of each individual and allow them time and resources to further develop those skills, crafting a culture of leaders who are passionate about where they are going within our organization.