Posts

Setup Salesforce b2b commerce cloud for practice

Image
We will setup Salesforce b2b commerce in my developer org, on which I have enabled Dev Hub so that we can create a new scratch org. What is Dev Hub? Dev Hub consists of objects with permissions that let administrators manage the level of access that a user and an org can have. When creating an unlocked package that you plan to distribute to other org, dev org is best option as it will ensure that your package is owned by an active org.  Dev Hub available in: Developer , Enterprise , Performance , and Unlimited Editions   Scratch orgs available in: Developer , Enterprise , Group , and Professional Editions  How to enable Dev Hub? 1. Use the System Administrator login to access your trial, Developer Edition, or production org. 2. From Setup, enter Dev Hub in the Quick Find box and select Dev Hub. 3. If you don't see Dev Hub in the Setup menu, make sure that your org is one of the supported editions. 4. To enable Dev Hub, click Enable. Note: After you enable Dev Hub, you ca...

Salesforce B2B Commerce: Understanding the Basics and Key Terms

Image
What is Salesforce B2B Commerce? The selling of products or services between businesses is known as business-to-business, or B2B, commerce. The Salesforce platform serves as the foundation for Salesforce B2B Commerce, formerly known as CloudCraze. 1. What is Store? (API: Webstore) All of your commerce data, including as price books, categories, catalogs, and goods, are stored in stores. Experience Cloud sites are used by all B2B stores to present their products, organize buyer information, and handle purchases. To cater to various business sectors or geographical locations, you can open many stores. • To make products available, group them into categories, link a catalog to those categories, and link a store to the catalog. • Assign your customers to a buyer group and link that group to a store in order to grant them access to your business. • Establish a standard pricing for your products or work out a specific price for particular customer groups. Price books might be directly li...

Known Issues and their Solutions in Salesforce B2B Cloud

Problem with Flow Debugging Debugging with the flow typically requires impersonating a buyer Run flow as another user. However, the custom payment component installed as a part of this installation will be run as the user that is debugging, and not the buyer. This typically causes some malfunctioning behavior like missing billing addresses. There are a few workarounds. Don't debug and instead run as the buyer within the store relying on errors sent to the email specified in Process Automation Settings to find problems. If you know the buyer's account you can make a change in B2BPaymentController.cls. Directions are specified near the top of getPaymentInfo(). You can also make a change in the getUserAccountInfo() method in B2BUtils.cls. Here you would put the ID of the user instead of the call to UserInfo.getUserId();. This was not documented within the class as the effects would be farther reaching than in B2BPaymentController.cls.