Skip to content

magento2.4

Auto Added by WPeMatico

Cannot get customer custom attribute in Magento 2.4

I have created a customer custom attribute with the above code: namespace VendorCustomerSetup; use MagentoCustomerSetupCustomerSetupFactory; use MagentoFrameworkSetupInstallDataInterface; use MagentoFrameworkSetupModuleContextInterface; use MagentoFrameworkSetupModuleDataSetupInterface; use MagentoEavModelEntityAttributeSetFactory as AttributeSetFactory; class InstallData implements InstallDataInterface { /** * Customer setup factory * * @var CustomerSetupFactory */… Read More »Cannot get customer custom attribute in Magento 2.4

How to update custom_column value in customer_entity table upon email confirmation in magento 2?

I am trying to update the “customer_entity” table “custom_column” value upon customer confirmation. For that I used a plugin as follow. This is my di.xml content for this pluging <type name=”MagentoCustomerModelAccountManagement”> <plugin name=”customCustomerEntityColumn” type=”VendorModulePluginModelAccountManagementPlugin”></plugin> </type> And this is my Plugin… Read More »How to update custom_column value in customer_entity table upon email confirmation in magento 2?

Magento 2.4 How to override vendormagentoframeworkViewElementTemplateFile using a preference or a plugin in a custom module.?

How to override vendormagentoframeworkViewElementTemplateFileValidator.php using a preference or a plugin in a custom module. Workout: appcodeVendorEditCore1di.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <preference for=”magentoframeworkViewElementTemplateFileValidator” type=”VendorEditCore1frameworkViewElementTemplateFileValidator” /> </config> And my validator.php file path is, Vendor Path : vendormagentoframeworkViewElementTemplateFileValidator.php Custom Module Path: appcodeVendorEditCore1frameworkViewElementTemplateFileValidator.php… Read More »Magento 2.4 How to override vendormagentoframeworkViewElementTemplateFile using a preference or a plugin in a custom module.?