🔥💣🔥 Course to succeed the Salesforce B2C Commerce Developer Certification Exam Buy

Getting Started with Business Manager

Now that you know about the responsibilities that you have with your sandbox, let's do some exploration.
The URL to access your sandbox should be in the following format:


Sandbox Credentials Setup

Once you try to access your sandbox, you should be presented with the following screen:

Sandbox login screen. Salesforce Commerce Cloud

If your sandbox doesn't have two factor authentication enabled fill username and password with your sandbox credentials to login. If two factor authentication is enabled, click in Log with Account Manager button and user your Account Manager credentials to login and enter Salesforce Authenticat pin code (maybe push notification is sended to your mobile phone to login).

Business Manager Interface

Once you first log in you will be presented with Business Manager welcome page.

SFCC - Business Manager welcome page

Business Manager contains menus for Administration tasks as well as to site-specific (Merchant Tools) tasks. Administration menus:

SFCC - Business Manager administration menu

The merchant tools menus:

SFCC - Business Manager merchant tools menu

The modules displayed depend on your role and the privileges assigned to you by your Administrator. If you need access to an additional menu item or a module, ask your Administrator to provide access.
The Administrator is able to create roles and privileges inside Business Manager.
Right now you won't be able to use the Merchant Tools menu as you don't have a site imported yet. This will be our next step.


Your instance might have multiple sites. You can have different sites to offer different brands in different countries.
When you first log into Business Manager for a given instance, by default no storefront (site) has been deployed. You must either:

Commerce Cloud includes RefArch and SiteGenesis sample reference sites, which you can use as the basis of your custom Commerce Cloud Digital sites. They are both full-featured demonstration eCommerce sites, which you can use to explore the Digital platform and its capabilities.
They are a resource for both developers and merchants:

📝 Exercise: Import RefArch into your Sandbox

  1. Log in to Business Manager.
  2. Select Administration → Site Development → Site Import & Export.
  3. Determine if you want to import the site from a local or a remote instance and select the corresponding radio button.
  4. Select the Storefront Reference Architecture Demo Sites radio button and click the Import
  5. You will be sent to a new screen with 2 options to choose from. Select the one that says Storefront Reference Architecture base
  6. At the bottom right corner, click Deploy.
  7. The page will reload. You should see a red confirmation message. Click on the OK button on its right side.
  8. You can view the status of the import in the Status section of the page.
  9. Wait at least 10 minutes and click on the Refresh button under the Status section. Once the status changes to Completed, your site will be ready to use and it will be listed under the list of sites, right beside the Salesforce logo at the top left corner.
  10. You will also receive an email that the job has completed.

It is recommended that you import the Reference Storefront Architecture site (RefArch) into an empty sandbox before importing your custom sites. This prevents you from overwriting existing attributes and data for the custom site.

After importing RefArch, you can validate its behavior by comparing it to the site running on the demo instance at https://production-sitegenesis-dw.demandware.net/s/RefArch/home.

Create an Empty Site

Although you won't be really doing this in practice, let's see how to create an empty site.

  1. In Business Manager, select Administration >Sites > Manage Sites.
  2. Click New.
  3. Enter the site ID, "SFRATraining". The ID is required and should not include spaces.
  4. Enter the Name, "SFRATraining". The Name is required and can be any text string.
  5. Click the Currency drop-down and select your default currency (usually USD Dollar). You can only have one default currency per site. This is a required field.
  6. Click Apply.
  7. Now, you can view or configure your new site.
    1. To select the site, click the site name, Training, located on the site list.
    2. Select Site → Storefront. A browser window opens, displaying the storefront URL.

Site Configuration

After creating an empty site, let's check some final configurations.

Code Version

When you imported your RefArch site it was created along with it a code version. But what is a code version? It is basically a directory with all your cartridges.
B2C Commerce lets you have multiple custom code versions uploaded to the system at the same time. You can name each of your versions as you prefer, for example, v12 or summer_release.
Select Administration > Site Development > Code Deployment and check the existing code version. You will notice one that starts with SFRA_AP. That is the one created for your RefArch Site.

Remember how to check your code_version because you will need it later to sync your local code with the sandbox.
When developing your storefront, you select one active code version with which to work. All templates, pipelines, scripts, and images are taken from this active version and also that's where your code is uploaded to (check your dw.json file)

So why is it useful to know about code versions?

Disable site caching

In your sandbox to see your code changes immediately on the site, you should disable site caching. This prevents the page cache from taking effect so that pages reflect the most recent code changes. In production instances, the cache is on by default.

📝 Exercise: Disable Caching for an Empty Site or SFRATraining Site

  1. In Business Manager, select Administration > Sites > Manage Sites.
  2. Select your site name.
  3. Select the Cache tab.
  4. Set the Time to Live value to 0 and uncheck the Enable Page Caching setting.
  5. Click Apply.
  6. You should invalidate the cache at this stage. You can Invalidate Page Cache fully or partially.
  7. Check the status of the SFRATraining site.
Disable Site Cache SFRA

Rebuild Indexes

In order for you to see the latest changes in your storefront products, you should always have the indexes rebuilt.
They are rebuilt automatically from time to time but let's do it manually this time so we don't have to wait.

📝 Exercise: Re-Index Search for RefArch

  1. In Business Manager, select the site to index (RefArch).
  2. Go to the Merchant Tools > Search.
  3. Click Search Indexes.
  4. Select the top checkbox Index Type to select all the indexes.
  5. Click Rebuild.
  6. The indexes will start to be rebuilt. When complete, the status changes to Online.

Search-Friendly URLs

In order for us to be able to see our controller calls (backend functions) rather than just categories, we have to enable something called Storefront URLs. In order to do that go to:
Site > RefArch > Site Preferences > Storefront URLs, uncheck Enable Storefront URLs.

Storefront URLs. Commerce Cloud
⬅ Getting Started with SFCCManaging your storefront data ➡
🔥💣🔥 Course to succeed the Salesforce B2C Commerce Developer Certification Exam Buy