What does this accomplish?

You have created a new block and will be adding this block on every page. The block contains user-specific information and cannot be cached. The block is added to the default.xml with: What does this accomplish?A . The block will be loaded on the store front using AJAXB . FPC...

February 21, 2022 No Comments READ MORE +

How do you do that?

You are developing a module and need to add another column to a table introduced by another module MyCompany_MyModule via db schema. How do you do that?A . Create a etc/db_schema.xml file in your module, add the column and run bin/magento setup:upgradeB . Create a etc/db.xml file in your module,...

February 21, 2022 No Comments READ MORE +

What will be the result of the $product->getFinalPrice() call?

You have loaded an instance of MagentoCatalogModelProduct in the $product variable. You know that the loaded product has the type configurable with four variations. These variations have the prices: $10, $12, $12, $15. What will be the result of the $product->getFinalPrice() call?A . [10, 12, 15]B . 10C . [10,...

February 21, 2022 No Comments READ MORE +

What is a consequence of this setup?

A third-party module uses a layout update that changes the template path for a core block from product/view/addto/compare.phtml of the Magento_Catalog module to custom/view/addto/compare.phtml of your custom module. The merchant has a customized version of this template in their custom theme. What is a consequence of this setup?A . If...

February 20, 2022 No Comments READ MORE +

How many shipping addresses may be selected for an order during the checkout process?

How many shipping addresses may be selected for an order during the checkout process?A . One shipping address per line item is possibleB . Only one shipping address per order is possibleC . One shipping addresses per unit of quantity is possibleD . One shipping address per product type is...

February 20, 2022 No Comments READ MORE +

How do you do that?

You want to remove a column introduced by a third-party extension via declarative schema. How do you do that?A . Create the etc/db_schema.xml file and specify disable=”true” on the columnB . Modify the original etc/db_schema.xml file and remove the column from thereC . Create a SchemaPatch file and remove the...

February 20, 2022 No Comments READ MORE +

How do you do that using the admin interface?

A merchant tasks you to keep sales managers out of the system configuration backend pages. How do you do that using the admin interface?A . You remove access to the restricted pages from each user’s ACL settingsB . You create a role with limited permissions and assign all sales manager...

February 20, 2022 No Comments READ MORE +

What will be the result of the customization?

There is a custom extension called MyCompany_MyModule. It has the following layout customization declared in MyCompany/MyModule/view/frontend/layout/default.xml: <referenceContainer name=”content”> <block class=”MagentoFrameworkViewElementTemplate” name=”my.block” template=”MyCompany_MyModule::my_template.phtml” cacheable=”false”/> </referenceContainer> What will be the result of the customization?A . All store front pages will be non-cacheableB . Only the default landing page will be non-cacheableC ....

February 19, 2022 No Comments READ MORE +

Keeping maintainability in mind, how do you build this into Magento?

You are building an tool that imports products from an ERP. There are 20 columns of additional information that are associated with each product. This extra information must also be associated with an update time to know when to refresh the data. Keeping maintainability in mind, how do you build...

February 18, 2022 No Comments READ MORE +

In which file will the event observer be declared?

You have created a custom module which must perform an action immediately after an order is placed, but only on the store front of the merchant site. You have selected the checkout_submit_all_after as the target event which the module will observe. In which file will the event observer be declared?A...

February 18, 2022 No Comments READ MORE +