Development Components
Each B2C Commerce site is made up of development component building blocks.
- Cartridges
Business functionality in B2C Commerce is organized in cartridges. - Controllers
Controllers are server-side scripts that handle storefront requests. Controllers manage the flow of data in your application, and createViewModels
to process each storefront request as aroute
and generate an appropriate response. For example, in a storefront application, clicking a category menu item or entering a search term triggers a controller that renders a page. - Scripts
B2C Commerce provides a proprietary scripting language that the server interprets and includes in storefront pages as JavaScript. - Templates
B2C Commerce uses ISML templates to generate dynamic storefront pages. Templates combine HTML with a proprietary language extension called Internet Store Markup Language (ISML). An ISML template consists of standard HTML markup, ISML tags, and script expressions. ISML templates are similar to Java Server Pages in that both are used to present dynamically generated web content. - Forms
You can create HTML forms in B2C Commerce using templates and controllers. Using form definitions, you can also persist form data during a session and store it in system objects or custom objects.
Infocenter Retirement: On June 30, 2023, the Infocenter was retired, and documentation currently hosted on the Infocenter will be published to Salesforce Help, Commerce Cloud Developer Center, and Salesforce B2C Commerce Developer Documentation Resources. For more information, see the release note.