Which three actions do you specify in a module’s Data Patch to add a customer notes attribute?

A merchant tasked you to add an input field for notes to the Customer Account Information backend page. Which three actions do you specify in a module’s Data Patch to add a customer notes attribute? (Choose three.)A . $cache->clean([‘eav’, ‘db_ddl’]);B . $customerSetup->addAttribute(‘customer’, ‘notes’, $options);C . $customerSetup->getConnection()->addColumn(‘customer_entity’, ‘notes’, $columnSpecs);D . $notesAttribute->setData(‘used_in_forms’,...

June 19, 2022 No Comments READ MORE +

How is this done?

A client has asked you to include category url keys in product URLs. How is this done?A . Create an observer for controller_action_postdispatch_catalog_product_viewB . This is not possible because products can belong to multiple categoriesC . Set the configuration value of catalog/seo/product_use_categories to YesD . Create an after plugin on...

June 19, 2022 No Comments READ MORE +

In which file do you declare the observer?

A module MyModule needs to send notifications to customers only when the account was modified from a mobile app using the REST web APIs. You decided to implement an observer for customer_save_after_data_object event. In which file do you declare the observer?A . etc/webapi_rest/events.xmlB . etc/adminhtml/events.xmlC . etc/webapi/rest_events.xmlD . etc/events.xmlView AnswerAnswer:...

June 19, 2022 No Comments READ MORE +

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 +