# Cartridge path order and module.superModule

*B2C Commerce Developer Study Guide · B2C Commerce Setup · Last updated November 3, 2026 · https://www.certifyforce.com/study-guide/b2c-commerce-developer/b2c-commerce-setup/cartridge-path-order-and-module-supermodule*

How a site's colon-separated cartridge path is searched left to right, where custom, LINK, plug-in, base and modules cartridges go, how overrides match by name and location, and how require prefixes and module.superModule resolve along the path.

- Certification: Salesforce B2C Commerce Developer
- Exam section: B2C Commerce Setup
- Study guide: https://www.certifyforce.com/study-guide/b2c-commerce-developer

**Official exam objective:**

> Given the code for a storefront site, add the correct sequence of cartridge names to the provided cartridge path.

## What the exam expects

- Register cartridges on a site as a colon-separated list and say which cartridge wins when two contain the same file.
- Order a path given its cartridges: custom overlay, then LINK and plug-in cartridges, then `app_storefront_base`, with `modules` at the right.
- Place an override file so it matches the original's name and relative location.
- Pick the `require` prefix that resolves through the cartridge path rather than from the current cartridge.
- Say what `module.superModule` returns in a controller.

Key terms: **cartridge path** (a site's ordered list of cartridges); **overlay cartridge** (an `app_custom_*` cartridge that overrides the base); **LINK cartridge** (third-party integration such as payment or tax); **`modules`** (the cartridge holding the global `server` module); **`module.superModule`** (the next same-named module to the right on the path).

## Key facts

| Fact | Detail | Source |
|---|---|---|
| Where the path lives | Manage Sites > site > Settings > Cartridges | [Configure SFRA](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-configuring-sfra.html) |
| Separator | Colons between cartridge names | [Cartridges](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-cartridges.html) |
| Precedence | Left to right; first match is used | [SFRA Features and Components](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-sfra-features-and-comps.html) |
| Sharing | One cartridge can be registered to several sites | [Cartridges](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-cartridges.html) |
| Base feature with a setting | Configure it in Business Manager before coding, for example pick up in store | [SFRA Features and Components](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-sfra-features-and-comps.html) |
| LINK and plug-in slot | Between the custom cartridge and `app_storefront_base` | [Upload and configure cartridges](https://trailhead.salesforce.com/content/learn/modules/b2c-cartridges/b2c-cartridges-upload-configure) |
| No controller found | The first pipeline on the path runs | [SFRA Features and Components](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-sfra-features-and-comps.html) |
| Override rule | Same name, same relative location, cartridge further left | [Customize cartridges](https://trailhead.salesforce.com/content/learn/modules/b2c-cartridges/b2c-cartridges-customize) |
| `*/` prefix | Resolves from the beginning of the cartridge path | [Customize cartridges](https://trailhead.salesforce.com/content/learn/modules/b2c-cartridges/b2c-cartridges-customize) |
| `module.superModule` | First same-named module to the right of the current cartridge | [Customize SFRA](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-customizing-sfra.html) |

## Check yourself

- When no controller with the requested name exists anywhere on the path, what does the server execute?
- Why should you never edit the SFRA base cartridge directly?
- Why can a script require `server` with no path at all?
- In the features page's typical stack, which layer follows the two brand cartridges?

## Sources

- [Configure SFRA](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-configuring-sfra.html)
- [Cartridges](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-cartridges.html)
- [SFRA Features and Components](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-sfra-features-and-comps.html)
- [Customize SFRA](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-customizing-sfra.html)
- [Customize cartridges: override templates and controllers](https://trailhead.salesforce.com/content/learn/modules/b2c-cartridges/b2c-cartridges-customize)
- [Upload and configure B2C Commerce cartridges for dev](https://trailhead.salesforce.com/content/learn/modules/b2c-cartridges/b2c-cartridges-upload-configure)

## About the full unit

The "Core concepts", "Exam traps" and "Worked scenario" sections of this unit, its 7 linked practice questions, and unlimited timed mock exams are included with the B2C Commerce Developer pack (USD $19): https://www.certifyforce.com/practice-exams
