VOOZH about

URL: http://symphonyextensions.com/extensions/mailchimp/

⇱ MailChimp — Subscribe users to a MailChimp mailing list — Symphony CMS Extensions


Symphony Extensions

Symphony CMS

Follow @symextensions for updates to the 412 extensions that we track. What is this?

What is symphonyextensions.com?

Symphony Extensions tracks Symphony CMS extensions that are hosted on Github.

How do I submit an extension?

Host your extension on Github and make sure the repository has a good README and an extension.meta.xml file. Then sign in to this site using your GitHub profile where you will see a list of your public repositories. Pick one, and add it to the site. When you make changes, just update the XML file in your repository and we do the rest.

What is an extension.meta.xml file?

It is an XML file that you add to your repository to describe your extension. You can include a name and description, developer contact details, version history, changelog, dependencies and more. Please read the documentation for a full list. You can use the lint tool to check your XML against the schema before submitting your extension to the site.

Who runs this site?

This site is now run by the community @symextensions. The site was created by nickdunn. Contact him at @nickdunn

Found a bug?

Please report it here.

3.0.2releasedMailChimp

Subscribe users to a MailChimp mailing list

Clone URLhttps://github.com/lewiswharf/mailchimp.git

Add as a submodulegit submodule add https://github.com/lewiswharf/mailchimp.git extensions/mailchimp --recursive

Download
.tar.gz, .zip
Links
Github, Homepage, Issues, Wiki

👁 lewiswharf
Mark Lewislewiswharf7 extensions

Compatibility

2.x.x2.1.x2.2.x2.3.x2.4.x2.5.x2.6.x2.7.02.7.12.7.22.7.32.7.42.7.52.7.62.7.72.7.82.7.92.7.10
NoNo1.182.1.22.1.22.2.03.0.23.0.23.0.23.0.23.0.23.0.23.0.23.0.23.0.23.0.23.0.23.0.2
Symphony VersionExtension version
2.7.103.0.2
2.7.93.0.2
2.7.83.0.2
2.7.73.0.2
2.7.63.0.2
2.7.53.0.2
2.7.43.0.2
2.7.33.0.2
2.7.23.0.2
2.7.13.0.2
2.7.03.0.2
2.6.x3.0.2
2.5.x2.2.0
2.4.x2.1.2
2.3.x2.1.2
2.2.x1.18
2.1.xNo
2.x.xNo

Readme

MailChimp

The MailChimp extension allows users to subscribe to a list and supports unlimited number of merge fields.

Install

  1. Upload the /mailchimp in this archive to your Symphony /extensions folder.
  2. Enable it by selecting the "MailChimp" item under Extensions, choose Enable from the with-selected menu, then click Apply.
  3. Go to Symphony's preferences and enter MailChimp API Key and List ID (optional).
  4. Attach the MailChimp event to the appropriate page.
  5. Create form and necessary XSLT. Any extra fields for the list defined in MailChimp must be declared in your form.
  6. Ajax (optional)
    1. Link javascript file /extensions/mailchimp/assets/subscribe.js
    2. Call plugin.

```js var completeCallback = function (data) { ... }; var errorCallback = function (data) { alert(data.error); }

$(function () { $('#the-form').mailchimp({ complete: completeCallback, error: errorCallback }) }); ```

Note: In the callbacks (error and complete) the context of the function (the "this" keyword) will be
set to #the-form. The "data" parameters contains all the values in the event XML as JSON.

Example

xslt <xsl:choose> <xsl:when test="events/mailchimp[@result = 'success'] "> <h1>Thank You</h1> <p class="success">Check your e-mail to <strong>confirm your e-mail address</strong>.</p> </xsl:when> <xsl:otherwise> <h1>Newsletter</h1> <xsl:if test="events/mailchimp[@result = 'error'] "> <p class="error"><xsl:value-of select="events/mailchimp/error" /></p> </xsl:if> <form id="the-form" method="post" action="" enctype="multipart/form-data"> <fieldset> <label> First Name <small>(required)</small> <input type="text" name="merge[FNAME]" value="{events/mailchimp/cookies/cookie[@handle = 'FNAME']}" /> </label> <label> Last Name <small>(required)</small> <input type="text" name="merge[LNAME]" value="{events/mailchimp/cookies/cookie[@handle = 'LNAME']}" /> </label> <label> E-Mail Address <small>(required)</small> <input type="text" name="email" value="{events/mailchimp/cookies/cookie[@handle = 'email']}" /> </label> <input type="hidden" name="list" value="{your-list-id}" /> <input id="submit" type="submit" name="action[signup]" value="Sign me up" /> </fieldset> </form> </xsl:otherwise> </xsl:choose>

Notes

  • E-mail field must be lowercase as portrayed above.
  • Merge fields must have merge lowercase and match a Mailchimp field (i.e. merge[SOME_FIELD] whereby 'SOME_FIELD' must match exactly).
  • Merge fields must be passed in the form, but they can be hidden if desired.
  • To subscribe the user to multiple lists, simply add the list using commas (i.e. list-1,list-2,list-3).

Version history

3.0.211 October 2018

Symphony 2.6.0 to 2.x.x

  • Update drewm\Mailchimp to 2.5

3.0.128 February 2017

Symphony 2.6.0 to 2.6.x

  • Fix an error with the core JSONPage

3.0.025 January 2017

Symphony 2.6.0 to 2.6.x

  • Updated MailChimp API to 3.0
  • Added check and custom error when email already in list
  • Changed subscription call to add email to list or update if already in list

2.2.009 October 2016

Symphony 2.5.0 to 2.6.x

  • Fixed issue with namespace of Class 'Drewm\MailChimp' not found (again)
  • Updated submodule drewm/mailchimp-api to latest version
  • Added support to subscribe to multiple lists

2.1.220 February 2015

Symphony 2.3 to 2.5.x

  • Fixed issue with email already subscribed API response
  • Fixed issue with namespace of Class 'Drewm\MailChimp' not found

2.1.130 October 2014

Symphony 2.3 to 2.5.x

  • Fixed issue with renamed core method (saveConfig -> write)

2.116 October 2014

Symphony 2.3 to 2.5.x

  • Updated submodule drewm/mailchimp-api to latest version
  • Added js snippet in the readme

2.016 November 2013

Requires Symphony 2.3

  • Updated MailChimp API to 2.0
  • Allow overwriting of List ID (used as default)
  • Update of Event to return similar fields to Symphony events

1.2127 September 2013

Requires Symphony 2.3

  • Fixed Ajax issue (nitriques)

1.2008 March 2013

Requires Symphony 2.3

  • Added support for redirect on success.

1.1920 May 2012

Requires Symphony 2.3

1.1811 December 2011

Symphony 2.2 to 2.2.5

  • Fix a bug to handle & from MailChimp in error messages.

1.17

  • Fix a bug where $output could be mixed (Thanks nitriques).

1.16

  • A couple bug fixes including issue #3.

1.15

  • Ajax bug fix.

1.14

  • Ajax capability added (Thanks nitriques).

1.13

  • Switched from login/password to using the API key for authentication. MailChimp has deprecated the former. Clarified directions regarding merge fields.

1.12

  • Updated wrapper for API 1.3

1.11

  • Fixed bug to allow email address only form

1.1

  • Updated for Symphony 2.2 and increased flexibility to handle infinite merge fields.

1.0

  • Initial build