How to add observer to customer edited details.

Create a custom module n the code folder,here we are going to override the EDITPOST file from the magento-customer/controller/account . EditPost.php here added first name and last name to the event dispatch Here my vendor name is JJ and module name is Customerupdate di.xml for the module etc/frontend events.xml Observer folder contains EDITCUSTOMER.php

Show the matrix options in PDP page

step1:Create a Custom Item Field Go to Customization > Lists, Records & Fields > Item Fields > New. Set it up as follows: Example: Label: Slogan ID: _slogan Matrix Option: (checked) Type: Multiple Select List/Record: (add new) Name: Slogans ID: _slogans Matrix Option List: (checked) Values: Great; Amazing Applies To: Inventory Item Applies To: Select… Continue reading Show the matrix options in PDP page

How to Configure Swatches in Magento 2

Go to Stores – Attributes – Product and click on the Color Attribute option. From here, you can configure all the available color swatch settings: Catalog Input Type for Store Owner — allows you to define the input type. You can select from the Dropdown Menu, Visual Swatch and Text Swatch. Update Product Preview Image — updates the product… Continue reading How to Configure Swatches in Magento 2

Published
Categorized as Magento

Remove the – New – option from drop downs for certain roles

Employees will see the – New – option in certain drop downs if they have the ability to create that type of record.  To remove this the permission to create that type of record should be removed from the role or the Level should be set to View.  This will also prevent employees with this role… Continue reading Remove the – New – option from drop downs for certain roles