jannisbrandt / custom-fields-in-magento-newsletter-subscription

With this magento plugin you have the option to add and show some custom fields like firstname, lastname and salutation in the magento newsletter-subscription and save this to your database and newsletter-subscription-table.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pattern Lab Logo

a plugin for custom fields in your magento newsletter subscription

With this magento plugin you have the option to add/show some custom fields like firstname, lastname and salutation in the magento newsletter-subscription. You see the fields in the magento-backend and of course in the frontend.
Report bug · Request feature · Magento Documentation

What's included

Within the download you'll find the following directories and files, logically grouping common assets and providing both compiled and minified variations. You'll see something like this:

NewsletterSubscription/
├── registration.php	
├── Subscriber.php	
└── etc/
	├── db_schema.xml
	├── di.xml module.xml
	├── module.xml
        
└── view/
    ├── adminhtml/
    │   ├── frontend/
    		├── newsletter_subscriber_block.xml
    │  
    │ 
    └── frontend/
        ├── templates/
        	├── subscribe.phtml
        

What you have to do?

1. Change the path to your plugin-file: in this example I use Module_
2. Create a Content-Page in Magento
3. In the content-area you have to add your custom template: {{block class="Magento\Newsletter\Block\Subscribe" template="Module_FewsletterSubscription::subscribe.phtml"}}

About

With this magento plugin you have the option to add and show some custom fields like firstname, lastname and salutation in the magento newsletter-subscription and save this to your database and newsletter-subscription-table.


Languages

Language:HTML 80.2%Language:PHP 19.8%