Salesforce B2C SFRA Controllers
Builds and extends SFRA-compliant server-side controllers for Salesforce B2C Commerce Cloud request handling.
This skill empowers Claude to architect, implement, and extend Salesforce B2C Commerce Cloud controllers using the Storefront Reference Architecture (SFRA) server module. It provides deep expertise in managing route handlers, implementing complex middleware chains, and securing transactions with CSRF protection and server-side validation. Whether creating new features or overriding base cartridge logic through append, prepend, or replace patterns, this skill ensures best practices in B2C Commerce development, including performance-driven route caching and RESTful endpoint design.
Key Features
01Implementation of GET, POST, and USE routes using the SFRA server module
02Server-side form validation and ISML template response rendering
03Advanced middleware orchestration via server.append, server.prepend, and server.replace
0432 GitHub stars
05Performance optimization through route-level caching and JSON response handling
06State-change security via CSRF protection and mandatory HTTPS middleware
Use Cases
01Developing AJAX-based endpoints for dynamic product or cart updates
02Extending core storefront controllers to add analytics tracking or third-party integrations
03Creating a custom checkout step with specialized middleware and data validation