Which modification should be made to the new cartridge path?

A Digital Developer is working on a multi-site realm. A new site requires a different layout for the account landing page. The business logic and data model remain the same. The existing code is in AccountControl.js and accountlanding.isml in the app_storefront cartridge. The app_storefront cartridge contains code for all other...

January 21, 2023 No Comments READ MORE +

Which two XML files should the developer import using the using-specific Merchant Tools import modules?

A developer has a sandbox with code to log a message during execution, and the following code: After the code executes the developer does not see any log file with the message in the WebDEV folder. Which two XML files should the developer import using the using-specific Merchant Tools import...

January 21, 2023 No Comments READ MORE +

Which tool should the developer start with to identify the issue?

A retailer notices that the Account Addresses page is showing the wrong shopper's address. Which tool should the developer start with to identify the issue?A . Storefront Toolkit B. Reports and Dashboards module C. Pipeline ProfilerView AnswerAnswer: A

January 21, 2023 No Comments READ MORE +

Which statement correctly adds a log entry?

The following sample code is NOT providing the desired results. The Digital Developer needs to add an entry to the logs to debug the problem. Which statement correctly adds a log entry?A . Logger.exception(‘Unable to find Apple Pay payment instrument for order.‘+paymentInstruments); B. Logger.getErrorLog().log(‘Unable to find Apple Pay payment instrument...

January 20, 2023 No Comments READ MORE +

Which code snippet will complete the requirement?

Given a job step configured in the steptype.json, a developer needs to add a custom status code “No_FILES_FOUND”. Which code snippet will complete the requirement?A . var status = {success: ‘OK’. Message: ‘NO_FILES_FOUND’}; return status; B. var status = require(‘dw/system/status’); return new Status(Status.OK, ‘NO_FILES_FOUND’); C. this.status = ‘NO_FILES_FOUND’ return this;...

January 20, 2023 No Comments READ MORE +

Which modification allows the requests to successfully execute?

A Digital Developer is implementing an Open Commerce API call to add products to a basket. Given the following resource configuration: Which modification allows the requests to successfully execute?A . Change the "resource_id" value to: "/baskets/*/items". B. Change the "write_attributes" value to: "(+items)". C. Change the "read_attributes" value to: "(items)"....

January 20, 2023 No Comments READ MORE +

What does this code extend?

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 . A controller B. A middleware script...

January 20, 2023 No Comments READ MORE +

How should the developer follow SFRA best practices to expose this data for rendering?

A client wants to differentiate their monobrand stores with a special icon when shown in the store locator. The information is saved in a true/false custom attribute for each Store object in Merchant tools. How should the developer follow SFRA best practices to expose this data for rendering?A . Extend...

January 20, 2023 No Comments READ MORE +

What consideration should the developer in keep in mind to ensure that image data is returned correctly as part of search suggestions?

A developer plans to use the /search_suggestion (Shop API) in a Storefront application and the following property must be set to do so suggestion.product.image:view_type What consideration should the developer in keep in mind to ensure that image data is returned correctly as part of search suggestions?A . If the view_type...

January 20, 2023 No Comments READ MORE +

Which is necessary to achieve this?

A client has a requirement to allow users on the Storefornt to filter by a newly created attribute. Which is necessary to achieve this?A . Add a new Search Refinment Definition. B. Set the attribute as Searchable. C. Change the productseachrefinerbar.iml templateView AnswerAnswer: B

January 20, 2023 No Comments READ MORE +