A developer has a B2C site and a merchant requirement to add a new locale to it.
What are the steps to enable the locale in the Storefront?
A Digital Developer added a file named MyBusinessController.js in the cartridge named app_project. The project design calls for this new file to override MyBusinessController.js in client_project. The client_project cartridge contains other necessary functionality. Additional functionality is also included in the storefront_core and storefront_controllers cartridges.
Which cartridge path meets the project requirements?
Server.get('Show', consentTracking.consent, cache.applyDefaultCache, function (req,res,next){
Var Site = require('dw/system/Syte'');
Var pageMetaHelpter = require('*/cartridge/scripts/helpers/pageMetaHelper');
pageMetaHelpter.setPageMetaTags(req.pageMetaData, Site.current);
res.render('/home/homePage');
Missing code here
}, pageMetadata.computedPageMetadata);
The controller endpoint code snippet above does not work.
Which line of code should the developer use to replace line 6 and correct the problem?
A developer needs to check for product inventory in all inventory lists using the Open Commerce API.
An example request URL is:
Which properly should the developer check in the OCAPI settings to confirm the appropriate resource is enabled?
The developer is asked to enhance the functionality of an existing controller route by adding information to the response's viewData.
How should the developer approach this task while following SFRA best practices?