What is SFRA (Salesforce Commerce Cloud)?

Sumit Vadhera
3 min readMar 9, 2022

B2C Commerce provides the SFRA (Storefront Reference Architecture) reference application, which is a full-equipped e-commerce storefront or website design, with access to sample code, and sample data. If you are starting a new project, Salesforce recommends using SFRA as the basis of your implementation. Apart from SFRA Salesforce also provides you with another reference app named Sitegenesis, which is based on pipelines and Sitegenesis controllers.

What are the benefits of SFRA?

Mobile-first design: SFRA was designed considering the mobile and tablet shoppers in mind. Industry trends prove that more shoppers are making purchases directly from mobile phones and tablets instead of from laptops or desktops.

Extendable: SFRA was designed with expansion in mind. Implementors can develop websites by adding a customization layer on top of the core reference code, without having to change the core.

Official documentation: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp

What are some SFRA standards compliance?

Bootstrap

Storefront Reference Architecture (SFRA) uses Bootstrap 4. Bootstrap was selected because of its wide adoption in the technical community.

For browser support: the latest version of Firefox, Chrome, and Safari. Internet Explorer version 10 and later.

For mobile devices: Android, iPhone, and iPad.

Salesforce B2C Commerce

SFRA requires B2C Commerce Release 17.5 or later, due to the new script APIs used in the application.

Desktop Browsers

SFRA officially supports the two latest versions of the following browsers:

  • Microsoft Internet Explorer
  • Edge
  • Safari (MacOS)
  • Firefox
  • Chrome

Mobile and Tablet Browsers

SFRA officially supports the following devices:

  • Android phone-only Chrome is supported on Android devices.
  • iPhone-only Safari is supported
  • iPad-only Safari is supported

How to get SFRA?

Salesforce Commerce Cloud GitHub Repositories and Access

This is the primary place where code is shared for using B2C Commerce, and there are both public and private repositories available.

https://github.com/SalesforceCommerceCloud

Public (open-source) repositories are available to anyone that browses GitHub, with or without a GitHub user account. Private repositories require a GitHub user login that has been authenticated with Commerce Cloud in order to access.

Requesting access to Private GitHub Repositories:

Follow the official documentation:

SFRA Versions and Releases

It is important to choose a valid SFRA version to ensure that your base cartridge and plugin cartridges work well together. In the Salesforce GitHub, some SFRA versions are labeled as releases, and others are labeled as pre-releases. Releases are stable; pre-releases can be unstable.

SFRA version numbers have the following format:

v<major_version>.<minor_version>.<patch_version>

For example v6.0.0

Each major version represents a version that is not backward-compatible with previous versions. Each minor version represents a new functionality and features that are backward-compatible within the major version. Each patch version contains bug fixes or patches that are backward-compatible within each minor version.

https://github.com/SalesforceCommerceCloud/storefront-reference-architecture/releases

Pre-Release Labels

If a storefront-reference-architecture tag is labeled as ‘Pre-release’ in GitHub, the version has not been integration-tested with other SFRA product plugins and might be unstable. A pre-release version is compatible with its major and minor versions, but it can be unstable.

--

--

Sumit Vadhera

Salesforce enthusiast, wanderer, finding the beauty all around us.