- Added support for Craft 5.
- Added support for Craft 4.
- Fixed API error for
getInterestGroups()method
- Changed interest-categories max count to 100 (thanks, @SamLNL).
- Removed dependency on
pacely/mailchimp-api-v3and added client directly in plugin.
- Added support for Craft style env-variables in settings.
- Added
onAfterSubscribeandonAfterUnsubscribeevents (thanks, @wblommaert).
- Fixed error when subscibing without adding tags (thanks, @simonkuran).
- Added some default values to
subscribeservice method to make it easier to work with the service directly.
- Added support for multisite config values using
ConfigHelper::localizedValue(thanks, @janhenckens).
{warning} This is a more complex update than usual, things have been changed and deprecated. Make sure you read this changelog before updating.
- Added support for setting marketing permissions when subscribing a member to a GDPR enabled audience.
- Added support for adding
tagswhen subscribing. - Added support for setting VIP status when subscribing.
- Added
getMemberByEmailtemplate variable, controller action and service method. - Added
getAudienceByIdtemplate variable, controller action and service method. - Added
deletecontroller action and service method. Implements apermanentparameter to permanently delete a member and make it impossible to import again. - Added
getMarketingPermissionsByEmailtemplate variable and service method. - Added
getMemberTagsByEmailtemplate variable and service method. - Added
SubscribeResponse,MemberResponseandAudienceResponsemodels. - Added support for Craft's environment variable syntax (ie '$MY_ENV_VARIABLE') directly in config .
- Audience is the new list.
- Changed signature of the subscribe service method. It now takes three parameters, where the third is an array of options. If you access the subscribe controller directly from your own module/plugin, this is a breaking change, you need to update your code to reflect the change.
- Changed behavior of the unsubscribe method, it now sets the status to
unsubscribedinstead of deleting a member. Use thedeletemethod to delete instead. - Changed how interests are submitted. It should now be passed as a separate
interestsparameter, and is nested by group title. See example in the docs. This is a breaking change, if you used interest groups in version 2, you need to update your template code. - Changed return type of
getInterestGroups, it now either returns an array of groups, or null. Errors in logs/debug toolbar. This is a breaking change, if you usedgetInterestGroupsin version 2, you need to update your template code. - Changed the return value of the
subscribe,unsubscribeanddeleteservice methods to be aSubscribeResponse. Use propertyactionto check what action triggered the response.
- Removed support for using a pipe-delimited string with multiple list ids as a setting, or passing to service methods or template variables. If you need to subscribe to multiple lists, you should create your own controller that uses the service methods, and handles input and output accordingly.
- Deprecated
listcontroller in favor ofaudiencecontroller. - Deprecated
listIdconfig setting in favor ofaudienceId. - Deprecated
lidparameter in several controller actions in favor ofaudienceId. - Deprecated
emailtypeparameter in subscribe controller actions in favor ofemail_type. - Deprecated
mcvarsparameter in subscribe controller actions in favor ofmerge_fields. - Deprecated
checkIfSubscribedandcheckIfInListservice method and controller actions in favor ofgetMemberByEmail. - Deprecated
getListInterestGroupsservice method and controller action in favor ofgetInterestGroups.
- Fixed a bug that would make unsubscribe fail in PHP 7.2 or newer due to incorrect empty value.
- Fixed error handling in
subscribeandunsubscribeservice methods that would fail if the error was a PHP error. - Fixed incorrect use of parameters in redirectToPostedUrl.
- Fixed default value of audience id in template variables and improved check in service methods.
- Fixed a bug that would create an error in PHP 7.2 due to an incorrect empty value. Backported from 3.0.0.
- Fixed bugs in unsubscribe controller action.
- Added new unsubscribe service method and controller action (thanks, @engram-design).
- Added new checkIfInList service method and template variable (thanks, @engram-design).
- Fixed checkIfSubscribed to not only check if a user is in a list, but also if the user is subscribed (thanks, @engram-design).
- Fixed incorrect handling of settings list id (fixes #67) (thanks, @engram-design).
- Fixed README example (fixes #67).
- Fixed a bug that could occur in PHP 7.2 if no merge vars was defined (Thanks, @janhenckens!).
- Fixed a bunch of readme bugs.
- Fixed composer requirements
- Initial Craft 3 release