A merchant wants to obtain an export file that contains all the products assigned to their Storefront catalog. They do not know how to achieve this easily without manual processing, so asked their developer to help generate this. The merchant ' s instance setup is as follows:
• They have one Master catalog and one Storefront catalog.
• Some, but not all, of the products in the Master catalog are assigned to categories within the Storefront catalog.
Which method allows the developer to generate the export for the merchant?
A merchant uploads an image using the Content Image Upload module of Business Manager.
Which module can the merchant use to display the image on the Storefront?
What should a developer implement to enhance the functionality of an existing controller route?
Consider the following information:
A merchant has this three-tier category structure setup in the Storefront catalog.
New Arrivals > Women > Clothing
The category named Clothing has all the clothing items for Women and is merchandised.
A Search Refinement named Newness is correctly configured for the Clothing category.
When a merchandiser views the Clothing category, the Search Refinement appears and works as expected. However, the merchandiser does not see the Search Refinement when searching for Clothing via the Storefront search.
Why does the merchandiser not see the Search Refinement?
A developer has a sandbox configured with a service and its profile and credential. Now there is a requirement to allow changes to the service URL manually from the sandbox.
Which B2C feature should the developer use to achieve the request?
What is the expected result when extending a route without the middleware chain?
A developer is working on a feature that requires the use of a third-party API. What is the best practice for handling API responses in Salesforce B2C Commerce?
A developer needs to perform the same additional checks before completing multiple routes in a custom controller, in order to decide whether to render a template or redirect the user to a different page.
According to SFRA best practices, what is the correct approach to improve code reusability in this scenario?
Business Manager has the configuration:
• Active Log category is " root "
• Log level of WARN
The code below is executing:
varlog=Logger.getLogger( " products " );
Using this information, what will be written to the log?
Which line of code should a developer add for custom category debug logging?
There is a business requirement that a custom controller in app_custom_my_cartridges invokes the calculateTax function of the dw.order.calculateTax hook that is defined in app_storefront_base. How can the developer implement this call?
Which of these situations is an appropriate use of the B2C Commerce OCAPIs?
A merchant has reported that customers are seeing low stock items at the top of their search results, giving them a subpar customer experience and impacting conversion.
How might this issue be resolved to ensure a better customer journey?
A developer working on a simple web service integration is asked to add appropriate logging to allow future troubleshooting.
According to logging best practices, which code should the developer write to log when an operation succeeds, but has an unexpected outcome that may produce side effects?
What should a developer do to ensure that the gift vouchers are always available?
A developer needs to show only car accessories when shoppers use the search term " car accessories " and exclude technology accessories and household accessories.
Given the above requirement, what is the recommended approach using the Search Dictionaries Dashboard?
A developer needs to render a Page Designer page in JSON format. What is the correct syntax?
What is the action needed for the content slot to work as intended?
A developer is given the requirement to add a step to the existing business logic of the registration process.
How should the developer modify the route that handles the customer registration?
A client sells its product in single-brand stores as well as in multi-brand stores. When shown in the store locator list, the client wants the single-brand stores to have a particular background color to highlight them.
Which Business Manager action should be completed to allow the developer to apply different styling to the single-brand stores?
A client has a requirement to allow users on the Storefront to filter by a newly created attribute. Which is necessary to achieve this?
Given this customer basket information:
• A customer has an existing basket that consists of multiple items.
• One of the items is identified as a gift item by an attribute at the product line item.
• The developer needs to write custom code to fetch the customer basket and then modify the basket based upon the items in the cart. If the basket contains any gift items, modify the basket and create a separate shipment for the gift item.
Four hooks are required to make the modification, beginning with modifyGETResponse and ending with validateBasket.
dw.ocapi.shop.basket.modifyGETResponse
-- missing hook --
-- missing hook --
dw.ocapi.shop.basket.validateBasket
What are the two missing hooks in the middle?
How might a developer resolve the issue of low-stock items appearing at the top of search results?
A developer customized the Cart-Show controller route with a LINK cartridge that adds social media data. There is a new requirement to add a dataLayer object to the Cart-Show controller route.
How should the developer achieve this to ensure that no code change will be needed if the client decides to remove the LINK cartridge?
Which snippet works correctly when updating the package.json file to point to the hook file for a cartridge?
A developer uses hooks for an extension point. Which is true for running multiple hooks for an extension point?
A developer is using logging in scripts to troubleshoot an issue. They are using the dw.system.Log class to write to specific log levels and categories. Which log level is always enabled by default?
Given the sandbox with:
• Service configured and assigned to its profile and credential
• A code version that uses that service
And given the requirement to limit the number of success or error calls the code can perform to a restricted number of calls per second. Which configuration should the developer perform?
A developer is importing edits for two different sites into the same sandbox and is provided with four different files.
Which two XML files should the developer import using the site-specific Merchant Tools import modules?
In Log Center, a developer notes a number of Cross Site Request Forgery (CSRF) log entries.
After adding the token in the ISML template, which action might solve this problem?
Multiple shoppers report slow performance on the Product Details Page.
Which tool can a developer use to view average response times for the Product-Detail controller route?
Given a template rendered by a controller with caching and a remote include without caching, which situation applies?
A developer has a requirement to display a banner in two different category pages.
Which snippet of code should the developer add to a template to allow the merchant to configure each independently?
The developer created a new Storefront category in storefront-catalog-m-en, but when viewing the Storefront site, the category is not visible.
Why might the categories not be visible?
How should a developer achieve the task of not accepting certain asset components in a new Page Designer layout component?
A developer is asked to write a log containing the ID and name of the product with a variable named myProduct.
Which snippet of code should be used?
Given the following OCAPI definitions, which permission or permissions apply?
{
" resource_id " : " /sites/*/coupons/* " ,
" methods " :[
" put "
],
" read_attributes " : " (**) " ,
" write_attributes " : " (**) "
}
A developer wants to configure multiple products that should only be sold as a group. It should not be possible for buyers to buy these products individually. How should the developer configure the products?
Given the requirement to add caching to an existing page while adhering to SFRA best practices, which code snippet should be used?
A developer is implementing a new feature that requires the use of a custom object. What is the first step the developer should take?
A developer has the following files in template/resources:
• account.properties - > weight.unit=kilos
• account_en.properties - > weight.unit=stones
• account_en_US.properties - > weight.unit=pounds
Using the default locale configuration, what is the current outcome of the page that renders the account.isml template snippet below when visiting the Storefront with the English for Canada (en_CA) locale?
Your parcel weighs 10 ${Resource.msg( ' weight.unit ' , ' account ' ,null)}.
A developer wants to create a Business Manager extension with the cartridge named plugin_bm_extension.
Which two steps should the developer take for the extension option to show up in Business Manager?
To implement site custom functionality, a developer creates a new cartridge.
Which step should the developer take to ensure their cartridge changes take effect?
The developer has been given the following business requirement:
The shipping method, " Free Standard Ground Shipping " has an exclusion for products with ' category equals or is child of electronics-televisions. '
The marketing department has scheduled a sale offering a " Free Standard Ground Shipping " method for brand XyzTv televisions for the next 3 months.
What method accomplishes this while following best practices?
A merchant asks a developer to create a Cache Partition for the home page, so that when the home page is edited, only the home page cache is cleaned.
Given the above requirement, where should the developer create that partition in Business Manager?
Given a sandbox with an active slot configuration with the following specifications:
Content type set to product
With some product configured
With the following rendering template:slots/product/product_1x2.isml
Correctly enabled and scheduled
And given the code contained in the selected rendering template:
< isif condition= " ${!empty(slotcontent)} " >
< isloop iterator= " ${slotcontent.content} " alias= " product " >
< div class= " product " >
< isprint value= " ${product.getID()} " > < br / >
< isprint value= " ${product.getName()} " > < br / >
< /div >
< /isloop >
< /isif >
Is an additional action needed for this to work as intended?