Salesforce B2C Commerce Controllers
Builds and manages storefront controllers for Salesforce B2C Commerce using SFRA and Classic patterns.
This skill provides specialized guidance for developing storefront controllers within the Salesforce B2C Commerce ecosystem. It streamlines the creation of request handlers for both the Storefront Reference Architecture (SFRA) and Classic patterns, covering essential tasks such as middleware implementation, form submission handling, and AJAX endpoint creation. By providing standardized patterns for rendering ISML templates, returning JSON, and generating locale-aware URLs via URLUtils, it helps developers build robust, maintainable, and secure e-commerce storefronts.
Key Features
01Implements secure request handling with CSRF, HTTPS, and caching middleware
02Provides standardized error handling and data modeling for ISML templates
03Supports both SFRA middleware-based and Classic controller patterns
0422 GitHub stars
05Automates locale-aware URL generation using the URLUtils API
06Facilitates controller extension using prepend, append, and replace methods
Use Cases
01Handling secure customer form submissions for logins and registrations
02Extending base SFRA cartridge controllers to add custom business logic
03Creating custom storefront landing pages and product detail enhancements