EditableMailchimpSubscriptionField
A Field for UserForms (EditableFormField) that'll let you add Subscribers to a MailChimp list with groups., (*1)
Initially a fork/ re-write of https://github.com/lerni/EditableMailchimpSubscriptionField, (*2)
Installation
The easiest way is to use composer:, (*3)
composer require asecondwill/mailchimp-subscription-field
If you just clone/download this repository make sure you have the required packages also installed., (*4)
"require": {
"silverstripe/userforms": "dev-master",
"drewm/mailchimp-api": "dev-master"
},
Add your MailChimp API-Key per _config, (*5)
`NewsletterSignup::set_api_key('...');`
Run dev/build
afterwards., (*6)
Add a Newsletter signup field to your user form. Save your form to save that., (*7)
Click edit for that field. Choose a list from the dropdown. Save to set that., (*8)
Now fill in the other fields as you need them., (*9)
, (*10)
Status
The module is actively being developed. Suggestions, pull requests and issues are welcome., (*11)
How to use
Currently the Fieldnames in MailChimp and the Fieldnames in the Form need to match and you still need to map manually in the options of the field., (*12)