Giter Club home page Giter Club logo

mailchimp-subscribe-craft's People

Contributors

a-am avatar aelvan avatar bossanova808 avatar daltonrooney avatar eivindml avatar engram-design avatar imjakechapman avatar janhenckens avatar martinblackburn avatar mmikkel avatar npedrini avatar roberskine avatar samhibberd avatar samlnl avatar sanderpotjer avatar scott-davidjones avatar wblommaert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mailchimp-subscribe-craft's Issues

Parse error on install

I just installed this on a site running Craft 2.5.2762 and I get the following error:

Parse error: syntax error, unexpected '[', expecting ')' in /Users/username/Sites/sitename.dev/craft/plugins/mailchimpsubscribe/vendor/guzzlehttp/promises/src/functions.php on line 41

Docs update JSON dataType

The README does not imply that you need to use dataType: 'json' when sending AJAX requests.
However the response will be the HTML of the page unless dataType: 'json' is added to the $.ajax query

Multi List Subscription Not Working

I'm having an issue with the multilist subscription.
Everything is fine up until the foreach statement:

foreach ($listIdArr as $listId) {
     $retval = $api->listSubscribe($listId, $email, $vars);
}

print_r($listIdArr) before it reveals an array created from the piped string which is correct. However the above only seems to subscribe the user to the last list in the array? Any ideas or how to fix?

Cheers

Quick Edit on this. It seems the problem only occurs if the FNAME or LNAME variables are empty.

Error: Trying to get property of non-object

Hi, I have the exact same problem as issue #27. But it's on line 66.

I have the newest version of the plugin. PHP 7. The fix is already applied, but I get the exact same error.
I took the examples from the docs to check if a user already exists.

So I've changed line 66 from

if ($redirect != '' && $result->success) { 

to

if ($redirect != '' && $result['success']) {

The error message is gone...

Now I have to find out why it redirects although it's an ajax request...

object given array required

array_push() expects parameter 1 to be array, object given

try { $results = $mc->request('lists/' . $listId . '/members/' . md5(strtolower($email)), $postVars, 'PUT'); array_push($results, $this->_getMessage(200, $email, $vars, Craft::t("Subscribed successfully"), true)); } catch (\Exception $e) { // an error occured $msg = json_decode($e->getMessage()); array_push($results, $this->_getMessage($msg->status, $email, $vars, Craft::t($msg->title))); }

in the try part i got an error array required object given in array push

FR: Add GDPR lists support

Hi,

Mailchimp has now made setting the dedicated GDPR fields through the API. (Better late than never!)
Is this something that can be added?
The API shows that you need to pass your GDPR options as an array like so

'marketing_permissions' => [
   ['marketing_permission_id' =>'listId','enabled' => true/false],
   ['marketing_permission_id' =>'listId','enabled' => true/false],
   ['marketing_permission_id' =>'listId','enabled' => true/false}
]

Whereby each one represents a different GDPR list. Would be great if the plugin could pull out any $vars set to marketing_permissions and set them accordingly. πŸ‘

Mailchimp

Feature request: Unsubscribe from list

Is there anyway you could add the ability to unsubscribe a user from a list? We're wanting to add a "Marketing preferences" section to our frontend user section which will let people opt in or out of our mailchimp list.

Invalid Route

Submitting the following form results in a 404 error:

<form class="ContactForm" action="" method="POST">
    {{ csrfInput() }}
    <input type="hidden" name="action" value="mailchimp-subscribe/list/Subscribe"> 
    <!-- ... -->
    <input type="submit" name="" value="Subscribe"/>
</form>
HTTP 404 – Not Found – yii\web\NotFoundHttpException
Page not found.
Caused by: Invalid Route – yii\base\InvalidRouteException
Unable to resolve the request "mailchimp-subscribe/list/Subscribe".

I am assuming the value in the the hidden input is incorrect β€” but can't seem to find the correct value. Any help would be appreciated!

Error message translation

Hello. Thank you for this great plugin. All works fine except the translation of messages.
How could I translate this error message see image attached
image

I tried to put it in the Craft translation file but it does nothing.

No response from mailchimp with new version

Hi AndrΓ©.
Thank you for this great plugin.
I am using V0.4 and I tried to update to V1.4 but it does not work with the new version (it works locally but not on my server).
I checked in the logs but nothing.
Where should I tried to look at ?

Unable to resolve the request "mailchimp-subscribe/list/subscribe", Craft 3.0.28

I've just installed the plugin on Craft 3.0.28, and have copied the example form template from Example Usage. (Have also created an index.twig template at /newsletter/receipt for the confirmation message.)

On submitting the form I get:

Page not found.↡
Caused by: Invalid Route – yii\base\InvalidRouteException
Unable to resolve the request "mailchimp-subscribe/list/subscribe".
in /Users/jamesgreig/Repos/hunts/vendor/yiisoft/yii2/base/Module.php at line 537

Form template is...

<form class="newsletter-form" action="" method="POST">
        {{ csrfInput() }}
        <input type="hidden" name="action" value="mailchimp-subscribe/list/subscribe">
        <input type="hidden" name="redirect" value="{{ 'newsletter/receipt' | hash }}">

        {% if mailchimpSubscribe is defined %}
          {% if (not mailchimpSubscribe.success) and (mailchimpSubscribe.errorCode!='1000') %}
            <p>An error occured. Please try again.</p>
          {% endif %}
        {% endif %}

        <div class="field-line">
          <label{% if (mailchimpSubscribe is defined) and (mailchimpSubscribe.errorCode=='1000') %} class="error"{% endif %}>Email:</label>
          <input type="text" name="email" value="{% if (mailchimpSubscribe is defined) and (not mailchimpSubscribe.success) %}{{ mailchimpSubscribe.values.email }}{% endif %}"/>
        </div>

        <input type="submit" name="" value="Subscribe"/>
</form>

Plugin not recognized in Craft 2.3.2632 ?

Hi, I tried to install this plugin in Craft 2.3.2632 Unzipped and put the folder "mailchimp-subscribe-craft-master" in the folder plugins. Then, in Craft, clicked on "Plugins". The mailchimp subscribe plugin is not recognized. Other plugins installed without any problem. Any ideas ?

Rudolph

Example of "Ajax submitting" is not working properly

I think there are a bunch of errors relating to the recent update of the plugin.
I had version 0.4 installed and it worked much better than the new one...

This example does not seem to work:
https://github.com/aelvan/mailchimp-subscribe-craft#ajax-submitting

It always outputs "WEEEEEEEEE"...
Before the update it worked like a charm and was submitting the correct error codes! E.G. Also the codes that a user was already subscribed.
Now it's all WEEEEEEEEE but does not work :(

Error: Trying to get property of non-object

I added this to another post but figured we better open a new one.

I am getting this error on line (line 090).Received error in PHP 7 and 5.6

Trying to get property of non-object

capture

Automatically check if email on list (Craft 2.x version)

Is there a way to check if an email is on a list without having to click the Check if subscribed button as per the example form documented at https://github.com/aelvan/mailchimp-subscribe-craft/tree/master#checking-if-an-email-is-already-on-a-list?

I noticed that the Craft 3 version has this alternative:

{% set checkResponse = craft.mailchimpSubscribe.checkIfSubscribed('[email protected]', 'mylistid') %}

{% if checkResponse.success %}
    Email is on list!
{% else %}
    Email is NOT on list!
{% endif %}

Would the above be possible in the Craft 2.x version? If not, could you suggest any workarounds?

Couple of Unsubscribe controller bugs

The actionUnubscribe() should be;
actionUnsubscribe()
(line 83 in \src\controllers\ListController.php)

Same function is missing the $redirect variable;
$redirect = $request->getParam('redirect', '');
(line ~91 in \src\controllers\ListController.php).

Not working on Craft 2 anymore

Suddenly, the plugin is not working on Craft 2 anymore. I downloaded the craft 2 version in the master branch, but still can't make it work. There are no errors, it's sending the proper success response but I just don't receive the opt-in mailchimp email.

Anyone have an idea?

posting via AJAX 404'ing

I am trying to submit the newsletter signup details with an AJAX request, my request looks like this:

screen shot 2017-08-08 at 15 46 59

And I am receiving this response:

screen shot 2017-08-08 at 15 48 10

Have I done something wrong in my setup? The plugin seems to have installed fine, also if I disable the plugin I get a different 404 error returned, just a bog standard PHP / nginx error page, so it seems to be matching at least part of the route? Bit of a newbie with Craft sorry!

Thanks for any help

Where has the craft 2 version gone?

I am currently using the craft 2 version of this plugin and we are upgrading the server to php7. However the plugin breaks with the following error message:

Methods with the same name as their class will not be constructors in a future version of PHP; MCAPI has a deprecated constructor

I had a play around with the plugin to see if changing the function name or class name would have any effect but it through another error saying it could not connect.

So my question is do you have an archived craft 2 version with a fix in it for php 7 as we won't be switching to craft 3 just yet.

Cheers

Does this work for Craft 2.5 ?

Im trying to integrate this plug in as basic as possible and its not working. Im just getting a "An error occured. Please try again." error.

I used the 2nd example from your ready file.

I wonder if it's an issue with Craft 2.5

Unsubscribe action not working

Not sure if this is due to an update to MailChimps API as I'm sure this was working when I last tested a couple of months ago;

<form method="post" accept-charset="UTF-8">
{{ csrfInput() }}
<input type="hidden" name="email" value="{{ currentUser.email }}">
<input type="hidden" name="action" value="mailchimp-subscribe/list/unsubscribe">
<button type="submit">Unsubscribe</button>
</form>

I get the following error;

image

The subscribe action works fine, which suggests it's not a problem with the config etc.

Config check throws error

Hey, you closed the issue before I could respond with this error I am getting with your suggestion.

Neither the property "mcsubApikey" nor one of the methods "mcsubApikey()", "getmcsubApikey()"/"ismcsubApikey()" or "__call()" exist and have public access in class "Craft\ConfigVariable".

Missing a dependency

Installed v1.0.0 and tried to subscribe using the example template but I got an error of "Mailchimp\Mailchip class was not found"

Perhaps the "pacely/mailchimp-apiv3" package needs to be installed through composer.

404 When Posting

I've installed the plugin as described and am using the example form but only get a 404 after posting the form. Is this plugin still up to date and working? Thanks.

Under which license is this project distributed?

Hi,

I don't see a LICENSE or COPYING file in the project and I don't see any mention of a license in the readme or the plugin file. Which license is this project supposed to be distributed under?

Could you please provide some clarification and add either file mentioned?

Thanks in advance.

Using checkboxes

Hi, Thanks for the plugin, it works great but so far I cant figure out how to get it to work with radio button fields, I've set them up on the Mailchimp side of things, I have tried giving all the fields the same name, and I have tried adding numbers to them e.g. name="mcvars[FIELD-1]" or name="mcvars[FIELD[0]]" but so far no luck.

Example of my fields:

<input type="radio" name="mcvars[FIELD]" id="FIELD-0" value="Value 1"><label for="FIELD-0">Value 1</label>
<input type="radio" name="mcvars[FIELD]" id="FIELD-1" value="Value 2"><label for="FIELD-1">Value 2</label>

Is it possible to do this? Or to have fields that add the user into a group using checkboxes?

Thanks,

404

I'm having a hard time getting this plugin to work, using the example code.

I'm on craft 2.6.3000, and using the master branch of the plugin.

<form class="newsletter-form" id="newsletter-form" action="" method="POST">
            {{ getCsrfInput() }}
                <input type="hidden" name="action" value="mailchimpSubscribe/list/Subscribe">
                <input type="hidden" name="redirect" value="{{siteUrl}}#newsletter-form">

                {% if mailchimpSubscribe is defined %}

                    <p>{{mailchimpSubscribe.errorCode}} - {{mailchimpSubscribe.message}}</p>

                {% endif %}

                <div class="field-line">
                <label{% if (mailchimpSubscribe is defined) and (mailchimpSubscribe.errorCode=='1000') %} class="error"{% endif %}>Email:</label>
                <input type="text" name="email" value="{% if (mailchimpSubscribe is defined) and (not mailchimpSubscribe.success) %}{{ mailchimpSubscribe.values.email }}{% endif %}"/>
                </div>

                <input type="submit" name="" value="Subscribe"/>
            </form>

When submitting the empty form or an invalid email, I'm getting errorCode 1000 and message Invalid email (as it should).

When submitting the form with a valid email, I'm getting errorCode 404 and message Resource Not Found.

On a side note, I would like to scroll the page to the form after submitting, since the form is located at the bottom of the homepage, hence the <input type="hidden" name="redirect" value="{{siteUrl}}#newsletter-form">. As the redirect is only supposed to work when having a successful subscription, how can I have the correct scrollposition when having an error?

Property of a non-object - $result

Hi, When submitting a form request an error is thrown:

MailchimpSubscribe_ListController : line 39

$result->success

($result is an array) $result['success'] works correctly.

Hopefully resolved #23

Example Hash Filter appears incorrectly

Not a huge deal, but I thought it might save someone some troubleshooting. In the main example you have:

value="{{ newsletter/receipt | hash }}"

For the redirect. It looks like though that the hash filter takes a string. At least this was erroring for me, and this worked:

value="{{ 'newsletter/receipt' | hash }}"

Thank you so much for this awesome tool!

Using group with radio buttons

Hi,

I'm having trouble adding Groups.
I've made a group in mailchimp that has some choises (radio buttons).
For some reason it gives me a error (Invalid Resources).

My input field for a single radio button looks like this:

<input type="radio" name="mcvars[group][4973]['First Choice']" value="First Choice">

Here is 4973 my from id and "First Choise" one of the options.

Could u guys tell me what I'm doing wrong? Maybe add some more documentation about using Groups?

Service

Would be good to have a service so that we can include this in other plugins.

One mailing list ID by site locale

I have this common problem that MailChimp doesn't send email confirmation (ex.: double opt-in) regarding the user language. So, to get around this problem, I must create a mailing list by language and set the "lid" field with a custom variable in the settings.

I was wondering if this could be an appropriate feature to display one mailing list ID field for each site locale in the control panel if the site is localized ? See the image attached.

Thanks !

ss

Error while installing - conflict

I cannot install the plugin via shell using composer require aelvan/mailchimp-subscribe:

Using version ^2.0 for aelvan/mailchimp-subscribe
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for aelvan/mailchimp-subscribe ^2.0 -> satisfiable by aelvan/mailchimp-subscribe[2.0.0].
    - aelvan/mailchimp-subscribe 2.0.0 requires pacely/mailchimp-apiv3 dev-master -> satisfiable by pacely/mailchimp-apiv3[dev-master] but these conflict with your requirements or minimum-stability.
Installation failed, reverting ./composer.json to its original content.

I'm on Craft 3 RC5.
What am I doing wrong? Thanks in advance.

Ajax submitting not returning json using readme example

So I think it's because in ListController.php, this line:

if ($request->getAcceptsJson()) {
 return $this->asJson($result);
}

will not validate if using the default $.post without specifying the datatype.

Using this:

          $.ajax({url: '/', type:"POST", data: $(this).serialize(), dataType:"json",success: function (data) {
            if (!data.success) {
              // there was an error, do something with data
            } else {
              // Success
            }
          }})

it works.

Can't resubscribe through API if email was deleted or user unsubscribed

I was testing a new list with my primary email and deleted it to resubscribe and test changes. Everything looked successful on the front-end, but I never received another double opt-in email, nor did my list ever add my email back to the list of the subscribers.

After further testing, I found that unsubscribing a user also made it impossible for a user to resubscribe via the API. Changes to my single hidden field did apply to existing unsubscribed users. They just remain unsubscribed.

See:
https://stackoverflow.com/questions/36494975/can-not-re-subscribe-deleted-member
https://stackoverflow.com/questions/42159327/resubscribe-a-user-to-a-mailchimp-list-after-unsubscribe

Check if api key and list id is populated

Is there a way to check if the api key and list id is populated to show the newsletter form?

{% if mailchimpSubscribe is defined %}
    {% include '_components/newsletter' %}
{% endif %}

Not working with PHP 7.2

Dear AndrΓ©,

MailChimp subscribe is not working on our PHP 7.2 environment with Craft 2. (See attachment)
With Craft 3 there are no errors, but we are not migrating all our project directly to Craft 3.

Are there any plans to fix this issue?

Thanks in advance.

schermafbeelding 2019-03-06 om 12 22 34

404

Hi,

I am pretty sure this is a setup issue, but when i submit a contact form I am getting 404 errors.

for is as follows:

<form action="" id="search_form" class="newsletter-form" method="POST">
                        <input type="hidden" name="action" value="mailchimpsubscribe/list/Subscribe">
                        <input type="hidden" name="redirect" value="newsletter/thanks">
                        <input type="text" class="form-control" placeholder="Subscribe To Our Newsletter">     
                    </form> <!-- end search form -->

and fromt he network panel in dev tools i can see the its sendign a request '/' which is returning a 404.

Sync with packagist

Version 2.0.4 is not synced on Packagist, and thus not installable by composer.

[Question] XMLHttpRequest

How would one go about ajaxifying mailchimp-subscribe-craft using vanilla JS? For some reason I can't get it to work properly (400 Bad Request), even though I'm submitting with POST and json header the exact same string as when using JQuery ajax... Javascript keeps kicking my ass.

Parameter must be an array or an object that implements Countable

HiAelvan,

It looks like your pluginisn't compatible with PHP 7.0. We're running a Craft CMS 2.7.5 and getting a Parameter must be an array or an object that implements Countable error in the Response:

<h1>PHP Error [500]</h1>
<p>count(): Parameter must be an array or an object that implements Countable (APP-PROJECT-FOLDER/plugins/mailchimpsubscribe/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:67)</p>
<pre>#0 APP-PROJECT-FOLDER/core/app/etc/errors/ErrorHandler.php(184): Craft\ErrorHandler->handleError()
#1 APP-PROJECT-FOLDER/core/app/framework/base/CErrorHandler.php(133): Craft\ErrorHandler->handleError()
#2 APP-PROJECT-FOLDER/core/app/framework/base/CApplication.php(834): Craft\ErrorHandler->handle()
#3 APP-PROJECT-FOLDER/core/app/etc/web/WebApp.php(694): Craft\WebApp->handleError()
#4 unknown(0): Craft\WebApp->handleError()
#5 APP-PROJECT-FOLDER/plugins/mailchimpsubscribe/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(67): count()
#6 APP-PROJECT-FOLDER/plugins/mailchimpsubscribe/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(107): GuzzleHttp\Handler\CurlFactory->release()
#7 APP-PROJECT-FOLDER/plugins/mailchimpsubscribe/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): finish()
#8 APP-PROJECT-FOLDER/plugins/mailchimpsubscribe/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke()
#9 APP-PROJECT-FOLDER/plugins/mailchimpsubscribe/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(51): GuzzleHttp\Handler\{closure}()
#10 APP-PROJECT-FOLDER/plugins/mailchimpsubscribe/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(42): GuzzleHttp\Handler\{closure}()
#11 APP-PROJECT-FOLDER/plugins/mailchimpsubscribe/vendor/guzzlehttp/guzzle/src/Middleware.php(30): GuzzleHttp\PrepareBodyMiddleware->__invoke()
#12 APP-PROJECT-FOLDER/plugins/mailchimpsubscribe/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(68): GuzzleHttp\{closure}()
#13 APP-PROJECT-FOLDER/plugins/mailchimpsubscribe/vendor/guzzlehttp/guzzle/src/Middleware.php(59): GuzzleHttp\RedirectMiddleware->__invoke()
#14 APP-PROJECT-FOLDER/plugins/mailchimpsubscribe/vendor/guzzlehttp/guzzle/src/HandlerStack.php(67): GuzzleHttp\{closure}()
#15 APP-PROJECT-FOLDER/plugins/mailchimpsubscribe/vendor/guzzlehttp/guzzle/src/Client.php(268): GuzzleHttp\HandlerStack->__invoke()
#16 APP-PROJECT-FOLDER/plugins/mailchimpsubscribe/vendor/guzzlehttp/guzzle/src/Client.php(123): GuzzleHttp\Client->transfer()
#17 APP-PROJECT-FOLDER/plugins/mailchimpsubscribe/vendor/guzzlehttp/guzzle/src/Client.php(129): GuzzleHttp\Client->requestAsync()
#18 APP-PROJECT-FOLDER/plugins/mailchimpsubscribe/vendor/guzzlehttp/guzzle/src/Client.php(87): GuzzleHttp\Client->request()
#19 APP-PROJECT-FOLDER/plugins/mailchimpsubscribe/vendor/pacely/mailchimp-apiv3/src/Mailchimp.php(150): GuzzleHttp\Client->__call()
#20 APP-PROJECT-FOLDER/plugins/mailchimpsubscribe/vendor/pacely/mailchimp-apiv3/src/Mailchimp.php(79): Mailchimp\Mailchimp->makeRequest()
#21 APP-PROJECT-FOLDER/plugins/mailchimpsubscribe/services/MailchimpSubscribeService.php(192): Mailchimp\Mailchimp->request()
#22 APP-PROJECT-FOLDER/plugins/mailchimpsubscribe/services/MailchimpSubscribeService.php(58): Craft\MailchimpSubscribeService->_getMemberByEmail()
#23 APP-PROJECT-FOLDER/plugins/mailchimpsubscribe/controllers/MailchimpSubscribe_ListController.php(34): Craft\MailchimpSubscribeService->subscribe()
#24 APP-PROJECT-FOLDER/core/app/framework/web/actions/CInlineAction.php(49): Craft\MailchimpSubscribe_ListController->actionSubscribe()
#25 APP-PROJECT-FOLDER/core/app/framework/web/CController.php(308): CInlineAction->runWithParams()
#26 APP-PROJECT-FOLDER/core/app/framework/web/CController.php(286): Craft\MailchimpSubscribe_ListController->runAction()
#27 APP-PROJECT-FOLDER/core/app/framework/web/CController.php(265): Craft\MailchimpSubscribe_ListController->runActionWithFilters()
#28 APP-PROJECT-FOLDER/core/app/framework/web/CWebApplication.php(282): Craft\MailchimpSubscribe_ListController->run()
#29 APP-PROJECT-FOLDER/core/app/etc/web/WebApp.php(837): Craft\WebApp->runController()
#30 APP-PROJECT-FOLDER/core/app/etc/web/WebApp.php(288): Craft\WebApp->_processActionRequest()
#31 APP-PROJECT-FOLDER/core/app/framework/base/CApplication.php(185): Craft\WebApp->processRequest()
#32 APP-PROJECT-FOLDER/core/app/index.php(73): Craft\WebApp->run()
#33 APP-PROJECT-FOLDER/www/index.php(23): require_once()
#34 /Users/mark/.composer/vendor/laravel/valet/server.php(158): require()
</pre>

Update: Upgrading to php 7.2 still doesn't correct the issue

This error sounds like a common issue for CraftCMS 2 plugins. Is this something you can update?

Thanks for your help and all you do for the community is awesome!

Bug in check if subscribed

$listIdStr = $formListId ?? $settings->listId;

This line needs to be:
$listIdStr = $formListId !== '' ? $formListId : $settings->listId;

...as per the subscribe service. Otherwise the listId from settings is not used...

(also I note the docs on this are using the old action name still - input type="hidden" name="action" value="mailchimpSubscribe/list/CheckIfSubscribed

Seems too trivial to PR it but let me know if you want me to!

Update MailChimp API client to V3

From the API documentation:

"Prior versions will no longer be supported after 2016, so all API users should begin transitioning to v3.0."

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.