Missed part 1? Catch up right here!
In this segment of the "Let's Develop with Salesforce Commerce Cloud" we are going to setup a storefront. A storefront is basically the term SFCC uses for an e-commerce website, but it can also refer to just about any application, be it a native mobile app or an in-house employee benefits portal. A storefront is a foundational concept of SFCC development, as everything you develop for the platform is, ultimately, hosted on a storefront.
To help us get started quickly with our site, SFCC provides us with a full fledge sample e-commerce site called SiteGenesis which includes all sort of sample objects such as ISML templates, controllers and scripts. To install the SiteGenesis storefront:
When finished, you will see some new objects in your Project Explorer:
❤️ Please note: These folders are, in essence, cartridges. Cartridges are a fundamental concept of Commerce Cloud, used for packaging and deploying code. In Part 3 we are going to build our very own cartridge so take a minute and have a look at the content of these folders and how they are organized.
The new cartridges will now be uploaded to the Business Manager site. In order to use any of them however, we will have to register them first.
Registering a cartridge is done through Business Manager and is simply a matter of adding the cartridge name to a list of used cartridges.
It is important to note the order of importance of the list. Contrary to what you may expect, the order of importance goes from left to right, meaning the cartridges at the left take precedence over cartridges at the end of the path.
To register the core cartridges on your site:
The end result should be <root name>_core:<root name>_controllers in case of controllers, or <root name>_core:<root name>_pipelines for pipelines.
Now that our cartridges are uploaded and registered, we ready to roll! Head over to your site url, and if all went well you should be greeted with the following:
And there you have it. A full fledged e-commerce website running on SFCC waiting for our custom cartridge 🎉.
In Part 3, we will develop a custom cartridge — which is how you can add custom business logic and functionality to your site.
To read more about SFCC and its capabilities, refer to the official SFCC documentation.