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...
If you want to create layout XML instructions for this controller, what would be the layout XML's filename?
You see this code in etc/adminhtml/routes.xml: <route id="mymodule" frontName="user-subscriptions"> <module name="MyCompany_MyModule" /> </route> You have placed a controller in Controller/Index/Subscribe.php. If you want to create layout XML instructions for this controller, what would be the layout XML's filename?A . mymodule_index_subscribe.xmlB . mymodule_subscribe_[ACTION NAME].xmlC . user_subscriptions_index_subscribe.xmlD . user_subscriptions_subscribe_[ACTION NAME].xmlView AnswerAnswer: A
With the automatic dependency injection that Magento provides, how is the StoreManagerInterface resolved?
The constructor function for MagentoCatalogModelCategory contains this excerpt: With the automatic dependency injection that Magento provides, how is the StoreManagerInterface resolved?A . If no $storeManager is provided, Magento’s code generator creates a shell concrete class based on MagentoStoreModelStoreManagerInterfaceB . Magento finds all classes that implement MagentoStoreModelStoreManagerInterface (ordered alphabetically) and injects...
What do you specify as the menu item action attribute value so it links to /admin/mycompany/mymodule/?
You are adding a new menu item to the admin backend which will link to a custom backend page. The declaration of the route: What do you specify as the menu item action attribute value so it links to /admin/mycompany/mymodule/?A . action=”adminhtml/mycompany/mymodule/”B . action=”admin/mycompany/mymodule/”C . It is not possible without...
What is the resolution?
You are creating a new indexer which must run after the targetrule_product_rule index process. When you run bin/magento indexer:reindex, your rule always runs first creating inaccurate data. What is the resolution?A . Use a dependencies node in your indexer configuration.B . Specify the sortOrder in your indexer configuration.C . Use...
Where initialized sections Cart and Directory-data are on the server side via the classes?
You are building a new module to add extra functionality to the Magento application.You want to works with CustomerData the data stored on the client side. Where initialized sections Cart and Directory-data are on the server side via the classes?A . MagentoCheckoutCustomerDataCart and MagentoCheckoutCustomerDataDirectoryDataB . MagentoCheckoutApiCart and MagentoCheckoutApiDirectoryDataC . MagentoCheckoutBlockCart...
How do you organize the project to support this requirement?
You are working on a Magento store which will be selling in two countries. Each country has its own set of payment methods. How do you organize the project to support this requirement?A . Create one website, two payment scopesB . Create one website, one store viewC . Create one...
What two elements automatically render their children?
You are developing a module MyCompany_StoreInfo to display information about brick and mortar stores on a frontend page. The displayed information varies based on the country of a given store. What two elements automatically render their children? (Choose two.)A . <block class=”MagentoFrameworkViewElementAbstractBlock” name=”shop.info.details”/>B . <block class=”MagentoFrameworkViewElementTemplate” name=”shop.info.details”/>C . <container name=”shop.info.details”/>D...
How do you add a foreign key to an existing table created by another module?
How do you add a foreign key to an existing table created by another module?A . Create etc/db_schema.xml file with the table node and constraint child nodeB . Run the command bin/magento setup:db-schema:upgrade <table> <constraint declaration>C . This can only be done with raw SQL in a Schema Patch fileD...
What is the layout handle of the storefront path /custom/feature/?
A module declares the route: What is the layout handle of the storefront path /custom/feature/?A . mymodule_featureB . custom_featureC . mymodule_feature_indexD . custom_feature_indexView AnswerAnswer: C