Code Monkey home page Code Monkey logo

magento2-mailchimp-subscribe's Introduction

magento2-mailchimp-subscribe

Module of Magento 2. You can add subscribers to a MailChimp email list, a send campaings for email to people in the list. For example create in your store a list of clients to send promotions.

Configuration

You need change the API_KEY, ID_LIST_MAILCHIMP(Info) and SERVER that MailChimp provide you. You can get more info in their official documentation.

protected $KEY = "<KEY_MAILCHIMP>"; 
// After - example
protected $KEY = "459d667871186d19bd0322c35623178d-us20";
$response = $this->_requestManager->addSubscriberList(json_encode($params), '<ID_LIST_MAILCHIMP>');
// After - example
$response = $this->_requestManager->addSubscriberList(json_encode($params), '33fd85651a');
protected $URL = "https://<SERVER>.api.mailchimp.com/3.0/lists/";
// After - example
protected $URL = "https://us20.api.mailchimp.com/3.0/lists/";

Demo

Luma


Module made with purpose to learn Magento 2

Practice about development of a module from scratch. Probably the code and some practices aren't the corrects, but I excuse me, I'm process of learning, also Magento 2 have a large curve of learning and I don't know all standars of development in this great framework , so, I includeds a few common tasks

In the process of development this module I learned;

  • Workflow of modules in Magento 2.
  • Structure of folders.
  • Add custom routes in a module.
  • Add custom JS in a module.
  • Add custom CSS in a module.
  • Create an API call, Mailchimp in this case.

Sorry for the redaction, I'm trying to improve my english. So, is now or never.

magento2-mailchimp-subscribe's People

Contributors

moudev avatar

Watchers

 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.