Skip to content

magento man

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 MAMP setup, how to connect with localstack docker

I have a Magento 2 installation on Mac(Sequoia) with MAMP(Apache). I have installed LocalStack on Docker(Colima) and it is working fine separately. I am trying to connect my Magento with Localstack using the following command bin/magento set:confi:set –remote-storage-driver=”aws-s3″ –remote-storage-bucket=”local-bucket” –remote-storage-region=”eu-central-1″… Read More »Magento 2 MAMP setup, how to connect with localstack docker

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.?