Create a Store
After completing this unit, you’ll be able to:
- Enable digital experiences.
- Enable orders.
- Configure sharing settings.
- Modify page layouts for Lightning B2B Commerce.
- Create a store.
In this module, we assume you are a B2B Commerce administrator with the proper permissions to create a store. If you’re not an administrator for B2B Commerce, that’s OK. Read along to learn how your administrator would take the steps in a production org. Don't try to follow these steps in your Trailhead Playground. B2B Commerce isn't available in the Trailhead Playground.
Enable Digital Experiences
Before Maria can start actually creating a store, she has to do some prep work in her org. First up, she has to enable digital experiences. Why, you may ask, does Maria need to enable digital experiences to continue with her work on B2B Commerce? You see, every store created for B2B Commerce is associated with an Experience Cloud site.
You may already have an org that has digital experiences enabled, in which case, you can skip this step. But if you have an org that doesn’t, continue with this step.
- From Setup, enter
Digital Experiencesin the Quick Find box, then select Settings.
- Select Enable Digital Experiences.
- Enter a unique name for your domain. Keep in mind that you can’t change your domain name after you enable digital experiences. If you set up more than one site, you can append the site name to the URL to differentiate between them.
- Click Check Availability to make sure the domain is available.
- Click Save, then OK.
Enable Orders and Set Up Field-Level Security
Next up, Mariua has to enable orders. As you might (correctly) guess, being able to order things is pretty central to any store set up, and Lightning B2B Commerce is no different.
- From Setup, enter
orderin the Quick Find box, and then select Order Settings.
- Make sure the following settings are selected.
- Enable Orders
- Enable Enhanced Commerce Orders
- Enable Optional Price Books for Orders
- Click Save.
Once she’s enabled orders, Maria has to set up field-level security for certain fields to make them visible for administration purposes.
- In Setup, click Object Manager.
- Click Order.
- Click Fields & Relationships > Sales Store.
- Click Field Level Security.
- Select Read-Only for the System Administrator profile.
- Click Save.
Configure Sharing Settings for B2B Commerce
Maria knows that the most important commodity at Ursa Major Solar isn’t solar components: It’s the information residing in Salesforce. So she wants to safeguard that information as best as she can. To that end, the first step she takes is to restrict the org-wide defaults for all the B2B Commerce objects.
She sets both the internal and external org-wide defaults to public read-only for the following objects.
- Electronic Media Group
- Order Delivery Method
- Product Media
Maria can open up access to the objects to various groups of people using other sharing mechanisms should she need to.
Modify Page Layouts for B2B Commerce
Maria works with Taylor Givens, the senior merchandiser, who defines the page layouts. Maria needs to make some changes to page layouts to get all the fields and related lists needed on account and product record pages. To simplify the requirements, she creates a cheat sheet for herself to show all the fields and related lists are needed on which objects.
|Order Summary||Order Summary Layout||
|Order Delivery Group Summary
||Order Delivery Group Summary Layout
The cheat sheet clearly lays out all the new fields and related lists that Maria needs to add to the product and account record pages so all Ursa Major Solar users who need access have it.
Create a Store
Now that Maria has done a bunch of prep work, she can create a store. The store is the container for all your B2B Commerce data, and where you can showcase your products for buyers.
- From the App Launcher, select Commerce.
- On the Stores tab, click Create a Store to open the Lightning B2B Commerce template creation wizard.
- Read the template description and key features, and click Get Started.
- Enter a name. Your store and the associated Experience Cloud have the same name.
- For URL, enter the name of your store.
- Click Create.
Navigate the Lightning B2B Commerce App
After creating all the page layouts and the store, Maria decides to poke around the Commerce app to get familiar with what’s there. She clicks the Ursa Major Solar Store she just created, and in the Commerce app she can see quick links to various parts of setup, where she can:
- See the store’s products (once they’re added)
- Manage price books
- Review the catalog and its categories
- Set up search
- Administer the store
The Commerce app is the central place where everyone collaborates on the store. Maria obviously accesses it for administration tasks. Taylor accesses Experience Builder from the Commerce app to design and customize store pages. Taylor also accesses the product catalogs to update things like descriptions and media. Wei Leung, the developer does the app customization.
Now that Maria has identified her team and created a store that can be populated with data, she can hand off the store to other colleagues to add data and customizations. Continue on with our next module, to learn more about the Lightning B2B data model.