Ajax Newsletter Subscription
magepal/magento2-ajax-newsletter-subscribe
This extension makes it easy to add an AJAX subscription to the Magento newsletter.
No errors foundPHPStan level 1Build passing
Supported Magento versions: 2.4.9
5,484 installs★ 1 starsLatest: v1.2.1Released 2020-12-25License: proprietary
composer require magepal/magento2-ajax-newsletter-subscribeREADME
Reproduced from the package’s own README, under its own license, as of 2026-09-13. Links and images point back at the source repository.
composer require magepal/magento2-ajax-newsletter-subscribe
- Download the extension
- Unzip the file
- Create a folder {Magento 2 root}/app/code/MagePal/AjaxNewsletterSubscribe
- Copy the content from *unzip folder
php -f bin/magento module:enable --clear-static-content MagePal_AjaxNewsletterSubscribe
php -f bin/magento setup:upgrade
$('#newsletter-validate-detail').submit(function (e) { if ($(this).valid()) { var url = $form.attr('action'); var postData = $form.serializeArray(); try { $.ajax({ url: url, dataType: 'json', type: 'POST', showLoader: true, data: $.param(postData), complete: function (data) { if (typeof data === 'object') { data = data.responseJSON; //json object } else { //Unknown Error } } }); } catch (e) { //check for errors } } return false; });
$response = [ 'status' => 1, 'msg' => __('The confirmation request has been sent.'), ]; $response = [ 'status' => 0, 'msg' => __('There was a problem with the subscription: %1', $e->getMessage()), ];
- Custom SMTP
- Catalog Hover Image for Magento
- Enhanced Success Page for Magento 2
- Enhanced Transactional Emails for Magento 2
- Google Tag Manager
- Enhanced E-commerce
- Reindex
- Custom Shipping Method
- Preview Order Confirmation
- Guest to Customer
- Admin Form Fields Manager
- Customer Dashboard Links Manager
- Lazy Loader
- Order Confirmation Page Miscellaneous Scripts
- HTML Minifier for Magento2
© MagePal LLC. | www.magepal.com
Links
- Packagist
- PackageMaven — quality data by PackageMaven
- Repository
- Issues