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?
Answer(s): A
A developer is working on a new site for the U.S based on an existing Canadian site. One of the requirements is a change to the address form. The current Canadian form has an <options> list with the correct two-letter abbreviation for the provinces.The U.S. requirements are to:Have an <options> list with the correct two-letter abbreviation for the states in place of the province field.Set the U.S site locale.Add the options list field definition to the XML file. How should the developer set up the files before making the required edits?
Answer(s): C
A merchant has a content slot on a page that currently displays products based on the top Sellers for the current week.They wish to change this functionality and, instead, have the slot render a specific content asset so that the content experience is more personalized to the visitors.Which two actions are necessary to make this change?Choose 2 answers
Answer(s): B,D
Given a file in a plug-in cartridge with the following code:`use strict':Var base = module.superModule;Function applyCustomCache (req,res,next){res.CachePeriod = 6; //eslint-disable-line no-param-reassign res.cachePeriodUnit = `hours') //eslint-disable-line no-param-reassign next();}Module.exports = base;Module.exports.applyCustomCache = applyCustomCache;What does this code extend?
A developer has custom debug statements in a script, but the messages are not showing up in the Storefront Toolkit Request Log.Which step needs to be completed to get the messages to appear in the Request Log?
Post your Comments and Discuss Salesforce CCM-101 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the CCM-101 content, but please register or login to continue.