mhuber84/form-mailchimp

TYPO3 CMS Extension to connect EXT:form to mailchimp

Installs: 43

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

Type:typo3-cms-extension

3.0.0 2024-08-29 11:59 UTC

This package is auto-updated.

Last update: 2024-10-29 10:23:51 UTC


README

This extension adds a finisher for the TYPO3 sysext "form" to register the user to your Mailchimp audience.

When you add the form finisher, you can select the email field and the newsletter field in your form and define the Mailchimp list id. You can also define tags. If a user submits the form he is added to your Mailchimp audience.

Installation

  1. Install with composer require mhuber84/form-mailchimp

  2. Include TypoScript Check if this overwrites your own settings and adjust if necessary! :-)

  3. Include finisher in your form

  4. Configure API in ExtensionManager

Example form with mailchimp finisher

type: Form
identifier: newsletter_registration
label: 'Newsletter registration'
prototypeName: standard
renderingOptions:
  submitButtonLabel: Send
finishers:
  -
    options:
      mailchimpListId: 'YOUR-MAILCHIMP-LIST-ID'
      email: '{email}'
      newsletter: '{newsletter}'
      fieldMapping:
        FNAME: '{firstname}'
        LNAME: '{lastname}'
      mailchimpTags: 'Tag1, Tag2'
    identifier: Mailchimp
renderables:
  -
    renderingOptions:
      previousButtonLabel: 'Previous step'
      nextButtonLabel: 'Next step'
    type: Page
    identifier: page-1
    label: ''
    renderables:
      -
        type: GridRow
        identifier: gridrow-1
        label: 'Grid: Row'
        renderables:
          -
            type: Fieldset
            identifier: fieldset-1
            label: ''
            renderables:
              -
                defaultValue: ''
                type: Text
                identifier: firstname
                label: Firstname
              -
                defaultValue: ''
                type: Text
                identifier: lastname
                label: Lastname
              -
                defaultValue: ''
                type: Email
                identifier: email
                label: E-Mail
                properties:
                  fluidAdditionalAttributes:
                    required: required
                  validationErrorMessages:
                    -
                      code: 1221560910
                      message: Required
                    -
                      code: 1221560718
                      message: Required
                    -
                      code: 1347992400
                      message: Required
                    -
                      code: 1347992453
                      message: Required
                validators:
                  -
                    identifier: EmailAddress
                  -
                    identifier: NotEmpty
              -
                type: Checkbox
                identifier: newsletter
                label: 'Newsletter'

Author

Marco Huber, @mhuber84@troet.cafe, mail@marco-huber.de

Feel free to contribute and send in pull requests or create an issue on https://gitlab.com/mhuber84/form-mailchimp