Configuring SFRA

Previous Step: Building SFRA.

Even after you've built and pushed your code to your instance, you still have to configure your application in Business Manager and in your browser.

Register Your SFRA Cartridges

See Configuring the Storefront Reference Architecture (SFRA) Cartridge Path.

Add Data

To support the basic functionality of the SFRA application, Commerce Cloud provides data and images for a basic store catalog. Import this data to explore the SFRA application and view products.

See Importing SFRA Data into an Instance.

Generate Search Indexes

After you import the Storefront Reference Architecture (SFRA) data, generate the search indexes so the site appears correctly.

See Generate Search Indexes.

Page Caching

During site development, you can turn off caching for the site you're working on. To disable cache when you're working with SFRA, see Disabling Page Caching for Development.

Site URLs

We recommend using standard Salesforce B2C Commerce URL syntax in the early phases of development.

  1. Select site > Merchant Tools > Site Preferences > Storefront URL.
  2. On the Storefront URL Preferences page, make sure the Enable Storefront URLs option isn't selected.
Now you can enter a URL such as https://localhost/on/ directly in your browser to test new controllers or pipelines.

Add an Extra Code Version

If you aren't seeing your changes reflected on the server, try activating a different code version and then reactivating the current code version. If you immediately add an empty code version, you're ready to troubleshoot from the start.

  1. Select Administration > Code Deployment.
  2. Click Add and enter a name for your new code version.

SFRA Features

To configure SFRA in Business Manager, see Configuring Storefront Preferences for SFRA.
Note: Many of the features available for SiteGenesis JavaScript Controller (SGJC) and SiteGenesis Pipeline Processor (SGPP) are not used in SFRA. Typically, these features are not recommended based on our analysis of mobile user interaction and design. Sometimes, however, optional features are implemented as plug-in cartridges.

SFRA for Your Browser

To use SFRA, you must have cookies enabled in your browser.
Note: We don't have a TrendingNow content slot in SFRA. Therefore, error messages thaImt were visible in SGJC and that indicated cookies were disabled are no longer included in the log.

Next Step: Troubleshooting SFRA