How do you do that?

You are working on a new entity called vendor. You implemented the model, resource model and collection. You want to ensure that standard model events will be fired for your model, so an observer can be created for the events vendor_save_after, vendor_save_commit_after and others. How do you do that?A ....

June 18, 2022 No Comments READ MORE +

What order operation is available in the My Account section in the storefront?

What order operation is available in the My Account section in the storefront?A . Edit orderB . RefundC . ReorderD . InvoiceView AnswerAnswer: C

June 18, 2022 No Comments READ MORE +

What is the correct layout declaration for this?

You want to declare a block of the type MagentoFrameworkViewElementTemplate with a template named view.phtml in the layout XML. What is the correct layout declaration for this? A . Option AB . Option BC . Option CD . Option DView AnswerAnswer: D

June 18, 2022 No Comments READ MORE +

A customer added both configurables to the cart with the same selected variation?

There are two different configurable products which both share one variation. The shared variation is represented by the same simple product. A customer added both configurables to the cart with the same selected variation? How will they be displayed?A . As two separate line items with quantity 1 eachB ....

June 17, 2022 No Comments READ MORE +

How do you identify which REST endpoints are supported by the module?

A merchant gives you the module MyCompany_MyModule to install. How do you identify which REST endpoints are supported by the module?A . REST endpoints are declared in etc/webapi_rest/di.xmlB . Every public method of every interface in the Api folder automatically is exposed as a REST endpointC . REST endpoints are...

June 17, 2022 No Comments READ MORE +

How can you force Magento to execute an existing Data Patch file again?

While developing a module you need to modify an existing Data Patch. How can you force Magento to execute an existing Data Patch file again?A . By removing the Data Patch, running the command: bin/magento setup:db-data:upgrade, then copying the file back and running the command againB . By deleting the...

June 16, 2022 No Comments READ MORE +

How do you set the custom block MyCompanyMyModuleBlockA as a child for the block named product.info using layout XML?

How do you set the custom block MyCompanyMyModuleBlockA as a child for the block named product.info using layout XML? A . Option AB . Option BC . Option CD . Option DView AnswerAnswer: B

June 16, 2022 No Comments READ MORE +

How is this implemented?

A merchant asks you to extend customer functionality to allow customer accounts to be associated with two or more billing addresses. How is this implemented?A . By adding the attribute like customer_address_billing2 and customizing both My Account and Checkout functionality to use that new attributeB . By changing the System...

June 16, 2022 No Comments READ MORE +

How do you implement this, keeping simplicity in mind?

You are working on a project that contains a million SKUs. The merchant has requested the product view page to have a custom color schema and page layout depending on the product price range. How do you implement this, keeping simplicity in mind?A . Create a custom block which will...

June 15, 2022 No Comments READ MORE +

What happens when a category’s is_anchor attribute is set to 1?

What happens when a category’s is_anchor attribute is set to 1?A . Products without a specified category will be associated with this categoryB . The customer will see all products from all children of the categoryC . This is the default category for a websiteD . The category will always...

June 15, 2022 No Comments READ MORE +