mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-24 00:32:17 +01:00
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:
@@ -0,0 +1,2 @@
|
||||
bitbag_sylius_mailchimp_plugin:
|
||||
resource: "@BitBagSyliusMailChimpPlugin/Resources/config/routing.yml"
|
||||
18
bitbag/mailchimp-plugin/1.2/manifest.json
Normal file
18
bitbag/mailchimp-plugin/1.2/manifest.json
Normal 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"
|
||||
}
|
||||
}
|
||||
20
bitbag/mailchimp-plugin/1.2/post-install.txt
Normal file
20
bitbag/mailchimp-plugin/1.2/post-install.txt
Normal 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!
|
||||
@@ -1,2 +1,3 @@
|
||||
imports:
|
||||
- { resource: "@BitBagSyliusShippingExportPlugin/Resources/config/config.yml" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user