CCD-102 practice question 8 of 30

The developer created a new Storefront category in storefront-catalog-m-en, but when viewing the Storefront site, the category is not visible. What are two possible reasons?

Full set: 206 questions
Answer options
A: The Storefront catalog is offline
B: The category does not contain available products Correct answer
C: The category is not sorted
D: The category is offline. Correct answer
Correct Answer:
B. The category does not contain available products; D. The category is offline.
Explanation

For a new category to be visible on a Salesforce B2C Commerce storefront, two primary conditions specific to the category must be met. First, the category's status must be explicitly set to "Online" within Business Manager. A category that is "Offline" will not be rendered on the live site. Second, most storefront implementations, including the Storefront Reference Architecture (SFRA), are configured to hide categories that do not contain any available products. "Available" means the products assigned to the category are themselves online, searchable, and orderable. A newly created category is often empty or its assigned products are not yet online, causing it to be hidden.

References

1. Salesforce B2C Commerce Documentation

Manage Categories: "You can set a category to be online or offline. Offline categories don't appear on the storefront." This directly supports that a category being offline (D) is a reason for it not to be visible.

2. Salesforce B2C Commerce Documentation

Storefront Reference Architecture (SFRA): The core logic for rendering category navigation in SFRA typically checks if a category has online products before displaying it. For example

the data from Category.js in the server-side models is used in ISML templates with conditions like . This practice ensures that customers are not directed to empty pages

directly supporting option (B).

3. Salesforce B2C Commerce Documentation

Manage Catalogs: "For a catalog to be visible on the storefront

it must be assigned to a site and set to online." This confirms that an offline catalog (A) would hide all its contents

but this is a broader issue than what is described in the question

which focuses on a single new category.

Scroll to Top