View Categories

MailerLite and PublishPress Cart

MailerLite is an email marketing platform. Cart can add customers to a MailerLite group when they buy, and remove them again.

This integration requires PublishPress Cart Pro.


Before you start #

You need:

  • PublishPress Cart Pro installed and active.
  • A MailerLite account with at least one group.
  • A product in Cart. Create one under Cart → Products.

Get your MailerLite API key #

  1. Log in to your MailerLite account.
  2. Go to the Integrations page.
  3. Click the Use button under MailerLite API.
  4. Copy your MailerLite API key.

Connect MailerLite to Cart #

  1. In WordPress, go to Cart → Settings → Integrations.
  2. Open the MailerLite section.
  3. In Mailerlite API Key, paste your MailerLite API key.
  4. Save your settings.

The API key field is in the MailerLite section:

MailerLite API Key field in Cart Integrations settings

Connect a product to a MailerLite group #

  1. Go to Cart → Products and open the product.
  2. Open the Integrations tab.
  3. Click Add New.
  4. In Service, choose Mailerlite.
  5. In Trigger, choose the event that runs the integration. The default is Product purchased.
  6. Optional: in Restrict by payment plan / purchase type, limit the integration to one payment plan. Leave it empty to run it for every plan.
  7. In Action, choose Add contact or Remove contact.
  8. In Group, choose the MailerLite group. The list shows the groups you created in MailerLite.
  9. Click Publish or Update to save the product.

If your MailerLite groups do not show in the list, click Renew mailing lists to fetch your latest MailerLite data.

In this example, any payment plan adds the customer as a contact to the chosen group in MailerLite:

MailerLite integration on the product Integrations tab

Send extra customer details to MailerLite #

Cart sends the customer’s email address, first name and last name. It also sends the city, state, zip, country and phone number when the order has them.

To send other values, use Custom Field Map:

  1. In Custom Field Map, enter one pair per line.
  2. Separate the MailerLite field name from the value with a colon, for example mailerlite_field_name:cart_field_id.