Forums / Addon Sideboxes / MailChimp Newsletter Sidebox

MailChimp Newsletter Sidebox

Views: 189,700

Results 361 to 380 of 403
12 Mar 2019, 8:39 PM
#361
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,970
Plugin Contributions:
8

MailChimp Newsletter Sidebox

swguy:

Update just posted:
Fixes bug in API integration; adds instructions for changing Zen Cart newsletter page; moves log to logs folder; removes double opt in.

from the latest code:

 function mailchimp_add($email) {
    $mailchimp = new MailChimp(BOX_MAILCHIMP_NEWSLETTER_API_KEY);
    $reply = $mailchimp->list_add_subscriber([
       'id_list' => BOX_MAILCHIMP_NEWSLETTER_ID,
       'email' => $email,
       'status' => 'pending'
    ]);

not sure how that removes the double opt-in, as still in a pending status v subscribed status.

few things:

  • this is a nicely done integration. @swguy install instructions on his website are a tad clearer. (https://www.thatsoftwareguy.com/zencart_mailchimp.html#installation)
  • correct me if i'm wrong, but it also seems that with an observer, one could eliminate the need to modify core code; except for includes/modules/pages/account_newsletters/header_php.php. that notifier for NOTIFY_HEADER_ACCOUNT_NEWSLETTER_UPDATED seems like it would need the email address. not really sure how that notifier would work with only having a boolean...
  • while i am not a fan, one could add another(!) config to indicate whether one wanted customers to double opt-in or be immediately subscribed.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

12 Mar 2019, 8:56 PM
#362
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,970
Plugin Contributions:
8

Re: MailChimp Newsletter Sidebox

carlwhat:

from the latest code:

function mailchimp_add($email) {
$mailchimp = new MailChimp(BOX_MAILCHIMP_NEWSLETTER_API_KEY);
$reply = $mailchimp->list_add_subscriber([
'id_list' => BOX_MAILCHIMP_NEWSLETTER_ID,
'email' => $email,
'status' => 'pending'
]);

> 
> not sure how that removes the double opt-in, as still in a pending status v subscribed status.

ok, dig in...  and you find this:

```php
    public function list_add_subscriber(Array $options)
    {
        // Check required params
        if ( ! isset($options['id_list']) OR ! isset($options['email']))
        {
            throw new MailChimpException('Parameters not set on '.__METHOD__);
        }

        $endpoint = '/lists/' . $options['id_list'] . '/members/';
        $payload = [
            'email_address' => $options['email'],
            'status' => 'subscribed', 
            // 'status' => isset($options['status']) ? $options['status'] : 'pending',
        ];

so the double opt-in is removed. not really sure why it would be done here as opposed to the original call to mailchimp_add.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

19 Mar 2019, 7:26 PM
#363
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,721
Plugin Contributions:
56

Re: MailChimp Newsletter Sidebox

For those concerned about the upcoming MailChimp API deprecation: if you upgrade your version of my MailChimp integration, you have nothing to worry about; the latest version uses MailChimp 3.0.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

13 Apr 2019, 12:52 AM
#364
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,447
Plugin Contributions:
3

Re: MailChimp Newsletter Sidebox

Is it compatible with ZC 1.5.6?

IDEASLady
IDEAS Creative Studio

Your image... our business!

13 Apr 2019, 10:15 AM
#365
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,721
Plugin Contributions:
56

Re: MailChimp Newsletter Sidebox

Yes. All my mods now work with 1.5.6.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

13 Apr 2020, 1:56 PM
#366
irishshoppercom avatar

irishshoppercom

New Zenner

Join Date:
Oct 2013
Location:
UK
Posts:
19
Plugin Contributions:
0

Re: MailChimp Newsletter Sidebox

In Europe to comply with GDPR a tick box is now necessary for the use to tick to confirm they want to subscribe so an extra field is required.

In above posts it states extra coding can to added to include any aditional fields but I haven't a clue how to do this.
Has anyone achieved this which is necessary if you have any viewers in the EC.

Thank you.

Trevor

13 Apr 2020, 2:05 PM
#367
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: MailChimp Newsletter Sidebox

To my knowledge there are no specific requirements for a tick box. Mailchimp does have GDPR fields and there's more information here: https://mailchimp.com/help/collect-consent-with-gdpr-forms/ It specifically states that Mailchimp Subscribe is not compatible with GDPR fields and Certain styles of pop-up forms are not compatible with GDPR fields. In other words, these issues lie in mailchimp, not in a sidebox designed to their specs.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

13 Apr 2020, 3:12 PM
#368
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,721
Plugin Contributions:
56

Re: MailChimp Newsletter Sidebox

My stuff still uses the double opt-in (IIRC) so you get the confirmation of subscribe you are looking for. It's hard for me to believe you have to enter your email and check a box.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

13 Apr 2020, 7:13 PM
#369
irishshoppercom avatar

irishshoppercom

New Zenner

Join Date:
Oct 2013
Location:
UK
Posts:
19
Plugin Contributions:
0

Re: MailChimp Newsletter Sidebox

This is what is required to comply with GDPR.

Subscribe
email address
Consent to receive further information and Newsletters.
Gift Ideas Online will use the information you provide on this form to be in touch with you and to provide updates on new products, sales, special offers and Newsletters.

Tick to consent
You can change your mind at any time by clicking the unsubscribe link in the footer of any email you receive from us, or by contacting us at [email protected]. We will treat your information with respect. For more information about our privacy practices please visit our website. By clicking below, you agree that we may process your information in accordance with these terms.

We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp's privacy practices here.

13 Apr 2020, 9:59 PM
#370
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,721
Plugin Contributions:
56

Re: MailChimp Newsletter Sidebox

Ok, here's the thing: you can add a checkbox to the form if you want.

I just don't think you need it. It's a double opt-in system. They get an email saying "Are you sure you want this?" that they have to click a button on.

If you want to hire someone to add a checkbox to the form, go to the commercial help wanted forum at the bottom of this page.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

13 Apr 2020, 11:56 PM
#371
irishshoppercom avatar

irishshoppercom

New Zenner

Join Date:
Oct 2013
Location:
UK
Posts:
19
Plugin Contributions:
0

Re: MailChimp Newsletter Sidebox

swguy:

Ok, here's the thing: you can add a checkbox to the form if you want.

I just don't think you need it. It's a double opt-in system. They get an email saying "Are you sure you want this?" that they have to click a button on.

If you want to hire someone to add a checkbox to the form, go to the commercial help wanted forum at the bottom of this page.

Thank you for that. I am happy to use your Add On but what I am trying to say is the Mailchimp Code Above includes the tick box as shown but if I use the code then with your Add O which doesnt have a tick box will this cause problems ?

14 Apr 2020, 12:04 AM
#372
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,721
Plugin Contributions:
56

Re: MailChimp Newsletter Sidebox

Oh OK I get it now.
You went to mailchimp and their form generator has changed to include the checkbox.

You can use their form instead and integrate it yourself if you want to.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

8 Dec 2020, 2:37 AM
#373
oldpatterns avatar

oldpatterns

New Zenner

Join Date:
Nov 2020
Location:
Chelmsford, MA
Posts:
3
Plugin Contributions:
0

Re: MailChimp Newsletter Sidebox

Hello!

I am having issues with the newsletter side box appearing on the top of the mobile version of my website https://www.oldpatterns.com ever since I downloaded the mod. The newsletter sidebox is appearing on all pages other than my main page (side boxes are not set to display on that site) and I would like it to only appear in the slideout. I am using the default responsive classic template, Zen Cart version 1.5.7b, and PHP 7.3.25.

I followed all of the instructions on the readme for installation, and it is working properly on the computer version of my site. I wasn't able to find another solution, so help would be appreciated!

Attachment 19315

8 Dec 2020, 3:06 PM
#374
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,721
Plugin Contributions:
56

Re: MailChimp Newsletter Sidebox

I love your site! It reminds me of the patterns my mom used to have around the house when I was a kid. LOL.

OK here's how to solve your problem:
edit includes/templates/responsive_classic/css/responsive_default.css

where it says

div#documentcategories {display:none;visibility:hidden;}

add below that

div#mailchimpsidebox {display:none;visibility:hidden;}

(you have to do this twice because there's a portrait block and a landscape block.)

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

9 Dec 2020, 2:31 AM
#375
oldpatterns avatar

oldpatterns

New Zenner

Join Date:
Nov 2020
Location:
Chelmsford, MA
Posts:
3
Plugin Contributions:
0

Re: MailChimp Newsletter Sidebox

div#documentcategories {display:none;visibility:hidden;}

add below that

div#mailchimpsidebox {display:none;visibility:hidden;}

(you have to do this twice because there's a portrait block and a landscape block.)[/QUOTE]

Thank you! I am glad you enjoy the site too! I have edited this file with the above quote twice and unfortunately it still is showing even after refreshing and clearing my cache etc. Any other help advice would be appreciated!

9 Dec 2020, 5:10 AM
#376
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,721
Plugin Contributions:
56

Re: MailChimp Newsletter Sidebox

same change but in

includes/templates/responsive_classic/css/responsive_tablet.css

(2 places again).

In includes/templates/responsive_classic/jscript/jscript_responsive_framework.php under lines 35 and 82, copy the line for documentcategories and change that to mailchimpsidebox.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

9 Dec 2020, 5:09 PM
#377
oldpatterns avatar

oldpatterns

New Zenner

Join Date:
Nov 2020
Location:
Chelmsford, MA
Posts:
3
Plugin Contributions:
0

Re: MailChimp Newsletter Sidebox

Beautiful it works now! Thank you so much for your help and prompt responses!

15 Jan 2021, 10:08 PM
#378
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: MailChimp Newsletter Sidebox

When will this mod be updated to work with 1.5.7b? Does anyone have it currently working with this version of ZC?

NTO: building a better network thru collaboration
www.needtoorder.com | www.coffeewitheinstein.com

16 Jan 2021, 2:37 PM
#379
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,721
Plugin Contributions:
56

Re: MailChimp Newsletter Sidebox

Should be fine with 1.5.7b.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

16 Jan 2021, 3:40 PM
#380
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: MailChimp Newsletter Sidebox

swguy:

Should be fine with 1.5.7b.

Excellent - I'll install and report back.

NTO: building a better network thru collaboration
www.needtoorder.com | www.coffeewitheinstein.com