Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.03 KB

usage.md

File metadata and controls

39 lines (31 loc) · 1.03 KB

Usage

After installing this plugin the store will be connected to Mailchimp. This mean that Mailchimp will be updated with your realtime data using differents event listeners.

Get the mailchimp service on your class

/** @var Mailchimp $mailchimp */
$mailchimp = $this->get('odiseo.mailchimp_plugin.mailchimp');

Available CLI commands to synchronize your store data with Mailchimp.

$ bin/console odiseo:mailchimp:sync-stores
$ bin/console odiseo:mailchimp:sync-customers
$ bin/console odiseo:mailchimp:sync-products
$ bin/console odiseo:mailchimp:sync-carts
$ bin/console odiseo:mailchimp:sync-orders

Newsletter

To render this view you can run mkdir -p templates/bundles/SyliusShopBundle then cp vendor/sylius/sylius/src/Sylius/Bundle/ShopBundle/Resources/views/_footer.html.twig templates/bundles/SyliusShopBundle/_footer.html.twig and then add:

{# ... #}
{% include '@OdiseoSyliusMailchimpPlugin/Shop/_newsletter.html.twig' %}
{# ... #}