3brs/sylius-mailchimp-plugin

MailChimp plugin for Sylius

This package is auto-updated.

Last update: 2024-04-12 13:33:51 UTC


README

68747470733a2f2f33627273312e667261312e63646e2e6469676974616c6f6365616e7370616365732e636f6d2f336272732f6c6f676f2f334252532d6c6f676f2d73796c6975732d3230302e706e67

MailChimp Plugin
68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f336272732f73796c6975732d6d61696c6368696d702d706c7567696e2e737667 68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f336272732f73796c6975732d6d61696c6368696d702d706c7567696e2e737667 68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f336272732f53796c6975734d61696c4368696d70506c7567696e2f6d61737465722e737667

Features

  • Per channel configurable options
  • Subscribe user during checkout
  • Subscribe user during registration
  • Sync newsletter preferences in customer's profile
  • Select the mailing list per channel
  • Configure double opt-in per channel
  • This plugin, unlike others, can handle large mailing lists

admin.png

Installation

  1. Run $ composer require 3brs/sylius-mailchimp-plugin.
  2. Register \MangoSylius\MailChimpPlugin\MangoSyliusMailChimpPlugin in your Kernel.
  3. Your Entity Channel has to implement \MangoSylius\MailChimpPlugin\Entity\ChannelMailChimpSettingsInterface. You can use Trait MangoSylius\MailChimpPlugin\Entity\ChannelMailChimpSettingsTrait.
  4. Include {{ include('@MangoSyliusMailChimpPlugin/mailChimpChannelSettingsForm.html.twig') }} in channel edit page.

For guide to use your own entity see Sylius docs - Customizing Models.

Configuration

Set the API Key in parameters.yml

mango_sylius_mail_chimp:
	mailchimp_api_key: API_KEY

Optional (subscription from checkout)

  • Include subscribe checkbox template into checkout {{ include('@MangoSyliusMailChimpPlugin/newsletterSubscribeForm.html.twig') }}

Development

Usage

  • Create symlink from .env.dist to .env or create your own .env file
  • Develop your plugin in /src
  • See bin/ for useful commands

Testing

After your changes you must ensure that the tests are still passing.

  • Easy Coding Standard
    bin/ecs.sh
  • PHPStan
    bin/phpstan.sh

License

This library is under the MIT license.

Credits

Developed by 3BRS
Forked from manGoweb.