How would they ensure the configuration is deployed and consistent across all environments?

An Adobe Commerce developer creates a new website using a data patch. Each website will have unique pricing by website. The developer does not have visibility into the production and staging environments so they do not know what the configuration currently is. How would they ensure the configuration is deployed...

May 16, 2022 No Comments READ MORE +

What would be a reason for this?

An Adobe Commerce developer added a new API method to search and retrieve a list of Posts for a custom Blog functionality. This is the content of the module's etc/webapi.xml file: The new code has been deployed to production and the merchant is using https: //merchant.domain.com/swagger to review the new...

May 16, 2022 No Comments READ MORE +

Why is the plugin not executing as expected?

An Adobe Commerce developer has created a before plugin for the save () function within the magentoFrameworkAppCacheProxy class. The purpose of this plugin is to add a prefix on all cache identifiers that fulfill certain criteria. Why is the plugin not executing as expected?A . Another around ptugm defined for...

May 16, 2022 No Comments READ MORE +

What is the problem with this xml snippet?

An Adobe Commerce developer adds a new extension attribute to add an array of values to the invoices that are fetched through the APIs. After a while, their technical manager reviews their work and notices something wrong with the extension_attributes.xml file that the developer created in their module: extension_attributes for="MagentoSalesHotelOrderInvoiceRepository">...

May 16, 2022 No Comments READ MORE +

Why would this be set to true?

An Adobe Commerce Developer is tasked with creating a module which generates a sitemap by cron. While writing the module, they realize they will need to use environment emulation to ensure the data is generated from a frontend perspective. They notice that the Emulation: :startEnvironmentEmulation() method accepts a $force parameter....

May 16, 2022 No Comments READ MORE +

How would the rest API be called to search the customers?

An integration named Marketing is created on the Adobe Commerce instance. The integration has access on Magento_Customer::customer resources and the access token is xxxxxx . How would the rest API be called to search the customers?A . Passing integration name and access token as http auth credentials: B . Using...

May 15, 2022 No Comments READ MORE +

An Adobe Commerce developer has created a new shipping carrier.

An Adobe Commerce developer has created a new shipping carrier. Everything has been implemented and the collectRates() and getAlloweMethods() functions can be seen below: A . Given the above code, what would be the displayed cost of the shipping method and final amount charged to the customer?B . The shipping...

May 15, 2022 No Comments READ MORE +

What three steps do you take to accomplish this in MyCompany_MyModule?

You need to add the Google Tag Manager (GTM) to every page. What three steps do you take to accomplish this in MyCompany_MyModule?A . Add into view/frontend/layout/default.xml.B . Create view/frontend/layout/default.xml.C . Create view/frontend/templates/script.phtml and add GTM code.D . Run bin/magento create:module:template script.phtmlE . Copy vendor/module-catalog/view/template/script.phtml to view/template/script.phtml and add GTM...

May 15, 2022 No Comments READ MORE +

What must the developer do to accomplish this?

An Adobe Commerce developer is creating a module (Vendor_ModuleName) to be sold on the Marketplace. The new module creates a database table using declarative schema and now the developer needs to make sure the table is removed when the module is disabled. What must the developer do to accomplish this?A...

May 15, 2022 No Comments READ MORE +

What must the developer do to ensure that their action works without any side effects in the original module?

An Adobe Commerce Developer wishes to add an action to a pre-existing route, but does not wish to interfere with the functionality of the actions from the original route. What must the developer do to ensure that their action works without any side effects in the original module?A . In...

May 15, 2022 No Comments READ MORE +