Giter Site home page Giter Site logo

kriz83 / syliusmailchimpplugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from setono/syliusmailchimpplugin

0.0 2.0 0.0 206 KB

Mailchimp integration plugin for Sylius

License: MIT License

Gherkin 4.92% PHP 86.60% JavaScript 3.27% HTML 5.21%

syliusmailchimpplugin's Introduction

Sylius Mailchimp Plugin

Latest Version on Packagist Software License Build Status Quality Score

Overview

The plugin allows configuring various MailChimp lists, exporting emails via admin panel & CLI and signing to the newsletter from the shop. It extends BitBag/SyliusMailChimpPlugin and is developed with the contribution of the BitBag team.

Installation

1. Require plugin with composer:

$ composer require setono/sylius-mailchimp-plugin

2. Import configuration:

imports:
    - { resource: "@SetonoSyliusMailchimpPlugin/Resources/config/config.yml" }

3. Import routing:

setono_sylius_mailchimp:
    resource: "@SetonoSyliusMailchimpPlugin/Resources/config/routing.yml"

4. Add plugin class to your bundles.php:

$bundles = [
    new Setono\SyliusMailchimpPlugin\SetonoSyliusMailchimpPlugin(),
];

5. Update your database:

$ php bin/console doctrine:migrations:diff
$ php bin/console doctrine:migrations:migrate

6. Include the newsletter in your template:

{% include '@SetonoSyliusMailChimpPlugin/Shop/_subscribe.html.twig' %}

Add these Javascripts to the layout template that includes your subscription form imported in the previous steps

<script src="{{ asset(path) }}"></script>
<script src="{{ asset('bundles/setonosyliusmailchimpplugin/setono-mailchimp-subscribe.js') }}"></script>
<script>
    $('#footer-newsletter-form').joinNewsletter();
</script>

That's the simplest and fastest way to integrate the jQuery plugin. If you need to customize it, simply take a look at setono-mailchimp-subscribe.js, create your own *.js plugin and import it in your main gulpfile.babel.js.

7. Install assets:

$ php bin/console assets:install --symlink

8. Clear cache:

$ php bin/console cache:clear

Usage

You can now configure Mailchimp lists in your admin UI and later on export them from via admin or the following command:

$ php bin/console setono:mailchimp:export

Testing

$ composer install
$ cd tests/Application
$ yarn install
$ yarn run gulp
$ bin/console assets:install -e test
$ bin/console doctrine:database:create -e test
$ bin/console doctrine:schema:create -e test
$ bin/console server:run 127.0.0.1:8080 -e test
$ bin/behat
$ bin/phpspec run

Contribution

Learn more about our contribution workflow on http://docs.sylius.org/en/latest/contributing/.

syliusmailchimpplugin's People

Contributors

loevgaard avatar bitbager avatar patrick477 avatar

Watchers

James Cloos avatar Krzysztof Korman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.