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 questionsFor 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.
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.
Keep practicing
Take the free CCD-102 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CCD-102 practice questions
- Question 1A developer has a sandbox with code to log a message during execution, and the following …
- Question 3Server.get(‘Show’, consentTracking.consent, cache.applyDefaultCache, function (req,res,ne…
- Question 4A developer needs to update the package.json file so that it points to the hock file for …
- Question 5A developer wants to create in Business Manager extension with the cartridge named plugin…
- Question 6A client uses tax tables in Business Manager to calculate tax. They recently started ship…
- Question 7A Digital Developer has a site export file on their computer that needs to be imported in…
