New answers tagged

0

I was trying to use Plugin. And avoiding overriding. app/code/Vendor/Newsletter/etc/frontend/di.xml <?xml version="1.0" encoding="UTF-8" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="Magento\Newsletter\Controller\Subscriber"&...


0

Create a custom module as below for override the newsletter success message. app/code/Vendor/Module/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Vendor_Module', __DIR__ ); app/code/Vendor/Module/etc/module.xml <?xml version="1.0" ?> <...


0

finally, I found the answer to add additional data to news letter. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="Magento\Newsletter\Model\Subscriber"> <plugin name="...


Top 50 recent answers are included