BitBag Mailchimp plugin (#1305)

* Add bitbag/mailchimp-plugin/1.2

* Delete install:assets step

* Fix 4 spaces indentation

* Add mailchimp parameters

* Define parameteres via container
This commit is contained in:
Rudzinski
2022-02-19 11:42:41 +01:00
committed by GitHub
parent d54f40267c
commit c5a41d9879
4 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
bitbag_sylius_mailchimp_plugin:
resource: "@BitBagSyliusMailChimpPlugin/Resources/config/routing.yml"

View File

@@ -0,0 +1,18 @@
{
"bundles": {
"BitBag\\SyliusMailChimpPlugin\\BitBagSyliusMailChimpPlugin": ["all"]
},
"container": {
"mailchimp.api_key": "%env(resolve:MAIL_CHIMP_API_KEY)%",
"mailchimp.list_id": "%env(resolve:MAIL_CHIMP_LIST_ID)%",
"mailchimp.webhook_secret": "%env(resolve:MAIL_CHIMP_WEBHOOK_SECRET)%"
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"MAIL_CHIMP_API_KEY": "YOUR_KEY",
"MAIL_CHIMP_LIST_ID": "YOUR_LIST_ID",
"MAIL_CHIMP_WEBHOOK_SECRET": "QUERY_PARAMETER_FOR_UNSUBSCRIBED_WEBHHOOK"
}
}

View File

@@ -0,0 +1,20 @@
<bg=blue;fg=white> </>
<bg=blue;fg=white> What's next? </>
<bg=blue;fg=white> </>
* Start using your fresh plugin:
1. Include the newsletter in your template:
<comment>{% include '@BitBagSyliusMailChimpPlugin/_subscribe.html.twig' %}</>
2. Add these javascripts to the layout template that includes your subscription form imported in the previous steps
<comment><script src="{{ asset('path/to/jquery.js') }}"></script>
<script src="{{ asset('bundles/bitbagsyliusmailchimpplugin/bitbag-mailchimp-plugin-newsletter.js') }}"></script>
<script>
$('#footer-newsletter-form').joinNewsletter();
</script></>
* <fg=blue>Read</> the documentation at <comment>https://https://github.com/BitBagCommerce/SyliusMailChimpPlugin/tree/master/doc</>
If you want to contact us, the best way is to fill the form on our website or send us an e-mail to <comment>hello@bitbag.io</comment> with your question(s).
We guarantee that we answer as soon as we can!

View File

@@ -1,2 +1,3 @@
imports:
- { resource: "@BitBagSyliusShippingExportPlugin/Resources/config/config.yml" }