b2c-controllers

Installation
SKILL.md

Controllers Skill

This skill guides you through creating storefront controllers for Salesforce B2C Commerce. Controllers handle HTTP requests and render responses for the storefront.

Overview

Controllers are JavaScript modules that handle storefront requests. A controller URL has this structure:

https://{domain}/on/demandware.store/Sites-{SiteName}-Site/{locale}/{ControllerName}-{FunctionName}

Example: https://example.com/on/demandware.store/Sites-RefArch-Site/en_US/Home-Show

Two Controller Patterns

B2C Commerce supports two controller patterns:

| Pattern | When to Use | Module Style |

Related skills

More from salesforcecommercecloud/b2c-developer-tooling

Installs
86
GitHub Stars
42
First Seen
Feb 16, 2026