Datastone mailchimp sync icon

Datastone mailchimp sync

Craft CMS Mailchimp Sync

The Craft CMS Mailchimp Sync plugin allows you to send email addresses collected via a newsletter subscribe form on your Craft CMS website to your Mailchimp audience.

Installation

  1. Install the plugin through the Craft CMS control panel or via the command line:

    composer require datastone/craft-mailchimp-sync
    
    ./craft plugin/install datastone-mailchimp-sync
    
  2. Configure the plugin by going to "Settings → Plugins → Datastone mailchimp sync" in the Craft CMS control panel.

  1. Now you can add a newsletter subscribe form on your website that collects email addresses. When users submit their email addresses through this form, the plugin will send the email addresses to your configured Mailchimp audience.
    <form method="post" target="_self">
     {{ actionInput('datastone-mailchimp-sync/news-letter/subscribe') }} 
     {{ csrfInput() }}
     <input type="email" name="email" placeholder="E-mailadres" required>
     <button type="submit">Subscribe</button>
    </form>
    

Translations

You can translate the flash message by following these steps:

  1. Add a translations directory to your Craft CMS root folder.

  2. Inside your translations directory, create a file named datastone-mailchimp-sync.php in your desired language directory, for example, translations/nl/ for Dutch translations.

Here's an example of the PHP translation file (datastone-mailchimp-sync.php):

<?php

return [
   'subscription-error' => 'Aanmelden op de nieuwsbrief is niet gelukt of je bent al geregistreerd.',
   'subscription-success' => 'Succesvol aangemeld op de nieuwsbrief!',
];

In this file, you can customize the translations for the flash messages as needed for your specific language.

Now, Craft CMS will use these translations for the flash messages based on the user's language settings.

Troubleshooting

Only the email will be sent to Mailchimp. Ensure that you have no other required fields set in Mailchimp, such as first and last name.

Roadmap

  • Posibility to add more fields to the form like first and lastname

  • serperate server id, for custom api keys

  • unsubscribe functions

License

This plugin is licensed under the MIT License. See the LICENSE file for details.

Credits

Craft CMS Mailchimp Sync is developed and maintained by Datastone.

Support and Feedback

If you encounter any issues or have questions or feedback, please create an issue on the GitHub repository.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Active Installs
4
Version
1.0.1
License
MIT
Compatibility
Craft 4
Last release
September 20, 2023
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs