What could be the solution of above problem?

When your class will be instantiated all the dependencies injected in your class constructor will also get instantiated, and it will trigger a chain reaction of object creation, this can really slow down the process. What could be the solution of above problem?A . Use Proxy classes with help of...

November 3, 2022 No Comments READ MORE +

How do you accomplish this?

You need to include the customer account menu on a custom storefront page, but only when the method MyCompany\lyModuleViewModelMyView: :hasCustomerMenu() returns true. How do you accomplish this?A . In the page action controller, inject the Layoutinterface and if hasCustonerMenu() returns true, call $layout->addHandle(‘custooer_account') B. Create an after plugin for MagentoFrameworkViewUyoutInterface::getOutput()...

November 3, 2022 No Comments READ MORE +

How do you fix this problem?

You are debugging a problem with a shopping cart price rule which gives free shipping for the whole cart if the subtotal is greater than $100. You are seeing that when a custom shipping method is selected, the shipping price is still present even though the subtotal is greater than...

November 3, 2022 No Comments READ MORE +

Which two steps are required to do this?

You are implementing a custom module MyCompany_MyModule which displays a new link in the Action column in the Orders grid. The purpose of this link is to synchronize the order summary data with an ERP system. You must make permissions to use this link manageable with the Magento ACL. Which...

November 2, 2022 No Comments READ MORE +

Keeping performance in mind, what attribute backend type do you choose when creating the EAV attribute?

You are integrating an external system from which products and categories will be synchronized with Magento. To keep the category tree synchronized, an identifier attribute needs to be added to the catalog_category entity. The identifier value is generated by the external system as an unsigned 3 byte integer and is...

November 2, 2022 No Comments READ MORE +

How do you implement this?

You need to build a custom module to add a notice to the Advanced Inventory section on the product form. The notice text can be specified in the system configuration. How do you implement this?A . You add a plugin on the form MagentoCataiogUiDataProvid«rProductFormProductDataProvider to add a field in the...

November 2, 2022 No Comments READ MORE +

What two performance issues will the update cause?

A merchant is planning to create a single scheduled update for one million products. They are wondering about website performance. What two performance issues will the update cause?A . Magento will index all records in the cataiog_product_entity table regardless of the version so the index tables will be big B....

November 2, 2022 No Comments READ MORE +

How do you set the custom status on orders placed with the new payment method?

You are developing a new payment method. It is required that any new order created with this payment method needs to have a specific custom status. Assume the status has been added to the system already, assigned to the processing state, and the new order state for the payment method...

October 31, 2022 No Comments READ MORE +

How does Magento store scheduled values for varchar attributes?

You are debugging an issue where the staged product custom attribute value is not displayed properly. The attribute backend type is varchar. How does Magento store scheduled values for varchar attributes?A . By creating a new record in the cataiog_product_entity table with the same entity_id and different rowjd and it...

October 31, 2022 No Comments READ MORE +

You need to create a list of warehouses with a set of details in the configuration values: warehouse name, warehouse postcode. For this, suppose you created a custom configuration file under your module's etc/warehouses_list.xml.

You need to create a list of warehouses with a set of details in the configuration values: warehouse name, warehouse postcode. For this, suppose you created a custom configuration file under your module's etc/warehouses_list.xml. Now what should be the name of it's XSD schema for this xml file validation:A ....

October 30, 2022 No Comments READ MORE +