-
Re: MailChimp Newsletter Sidebox
Solved the "Page not found". Thanks to SWGuy, Page #4, #35 reply.
~~~~~~~~~~~~~~~~~~~~~
It is possible that you have the values BOX_MAILCHIMP_NEWSLETTER_U and BOX_MAILCHIMP_NEWSLETTER_ID in mailchimp_sidebox_defines.php backwards. The value BOX_MAILCHIMP_NEWSLETTER_U should be the longer of the two.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ps. SWguy, maybe in your directions put a little note about this. I just copied the first and pasted to the first, ect.... Also, Thanks SWGuy for all your work on Zencart Mods.
-
Re: MailChimp Newsletter Sidebox
hello -
quick question. i just installed this mod a few days ago and everything with the sidebox works great, but on the create an account page, the email format defaults to "text only" instead of "html" like in the sidebox. any idea on how to fix this?
thanks!
my url: http://www.pangeahandmade.com/shop
-
Re: MailChimp Newsletter Sidebox
nevermind. i actually figured out that it's not going to work for me at all anyway. i ended up uninstalling the mod, because i couldn't get the thing to work at all.
looks like a great mod and would do exactly what i need it to, but i think i'm too stupid for it. :frusty:
kept getting the mailchimp "page not found" error and went through everything i possibly could to fix it and nothing worked. i read through this whole thread and none of the suggestions worked for me, and i can't have this directing customers to nowhere.
bummed out about this, if anyone has a fix that they can explain to me in detail about how to get it to work and not show an error after you enter an email address in the sidebox and click 'submit', i would be very much appreciative!
-
Re: MailChimp Newsletter Sidebox
Wow, thanks swguy, this looks like a great contribution!
I'd really like to replace zen cart's default newsletter functions with all the benefits from mail chimp.
However, what I really need to use, is the "group" function of mailchimp. I really need to give my customers the option to chose which subjects they'd like to receive newsletters about. When I read the pre-installation instructions of swguy's module, I read this
"In your Sign-up form, I suggest only having email address; if you want more fields, you'll have to modify this contribution."
I suppose this means that if I'm gonna use the group function, I'd need to modify this contribution?
Please clarify this. I'm not a coder, but I'm definately up for hiring someone if I need to. Thanks
-
Re: MailChimp Newsletter Sidebox
I am very new to all of this and trying the best I can.
With that being said I have gotten threw all of the instructions for this except one.
Press the Forms link for your new list. This will take you to a screen which will show you your signup form.
Press the "create embed code for small form" link.
It generates code in a box on the left hand side of the screen under the label copy/paste onto your site.
this is step 4 in the instructions but I do now know where I need to copy/paste this to on my site.
help please!!
Lisa
-
Re: MailChimp Newsletter Sidebox
Please note that the mechanism for pulling in an archive of past campaigns has changed. If you are using javascript that looks like this:
http://www.mailchimp.com/campaign_ar...d=1234&show=10
change it to this:
http://us1.campaign-archive.com/gene...d=1234&show=10
There's a complete list of instructions here:
http://kb.mailchimp.com/article/how-...f-my-campaigns
-
Re: MailChimp Newsletter Sidebox
Hi Software Guy!
I've installed the Mailchimp newsletter sidebox on my site.
However, I want to change the text of the actual box.
It's currently set to:
Subscribe to our newsletter for periodic updates and valuable coupons.
I'd want to change it to something that doesn't include teh mention to coupons.
Could you please give me the file that I need to edit to change the text?
I've looked in most of the files that I thought the text would be in.
I need this quickly, I'll donate once i can get this working.
Thanks
-
Re: MailChimp Newsletter Sidebox
./includes/languages/english/extra_definitions/mailchimp_sidebox_defines.php
-
Re: MailChimp Newsletter Sidebox
How do I change the color of "Subscribe to our newsletter for periodic updates and valuable coupons"
-
Re: MailChimp Newsletter Sidebox
That particular piece of text is not specifically styled. You could edit
"./includes/templates/template_default/sideboxes/tpl_mailchimp_sidebox.php"
and change
$content .= BOX_MAILCHIMP_PITCH;
to
$content .= '<span id="foo">' . BOX_MAILCHIMP_PITCH . "</span>";
and add
.foo {
styling
}
to your css file.
-
Re: MailChimp Newsletter Sidebox
I love this one!! Thank you!
Quick q:
What files I need to mod to ad an extra field (like First Name)?
Thanks!
Gabstero.
-
Re: MailChimp Newsletter Sidebox
The Chimps have been at it again - please update to the latest version of this contrib if you are having signup issues; the way the parms are passed in was changed.
http://www.zen-cart.com/index.php?ma...roducts_id=632
-
Re: MailChimp Newsletter Sidebox
Is there a possibility to change the subscribe button in the Mailchimp sidebox?
I want to have the same look as my other buttons :D
-
Re: MailChimp Newsletter Sidebox
RIght now it's not really a button (as in an image) - it's just rendered by the browser. You could change this but you'd have to change some code in the template.
./includes/templates/template_default/sideboxes/tpl_mailchimp_sidebox.php
-
Re: MailChimp Newsletter Sidebox subscription
$(document).ready(function(){ try { $('#archive-list li:even').addClass("odd"); $('.field-group, .field-group input, .field-group select').live('click',function(event){ if (event.type == 'click') { if ($(this).hasClass('field-group')){ var fg = $(this); $(this).find('input, select').slice(0,1).focus(); } else { var fg = $(this).parents('.field-group'); $(this).focus(); } fg.not('.focused-field').addClass('focused-field').children('.field-help').slideDown('fast'); $('.focused-field').not(fg).removeClass('focused-field').children('.field-help').slideUp('fast'); } }); // Allow select inputs to be width:auto up to 500px (because max-width doesn't work in IE7) $("select").each(function(){ $(this).css("width", "auto"); if($(this).width() > 500){ $(this).css("width", "500px"); } }); } catch(e){ console.log(e); } });
After you hit subscribe and the email is sent back to confirm this code is generated.
How do you get rid of this?
C
-
Re: MailChimp Newsletter Sidebox
Quote:
Originally Posted by
gabstero
I love this one!! Thank you!
Quick q:
What files I need to mod to ad an extra field (like First Name)?
Thanks!
Gabstero.
There appear to be two files needed to add names
You need to change includes\templates\template_default\sideboxes\tpl_mailchimp_sidebox.php
Where it says
$content .= ENTRY_EMAIL_ADDRESS;
$content .= '<input type="text" name="EMAIL" value=""><br />';
change it to
$content .= ENTRY_EMAIL_ADDRESS;
$content .= '<input type="text" name="EMAIL" value=""><br />';
$content .= ENTRY_FIRST_NAME;
$content .= '<input type="text" name="FNAME" value=""><br />';
$content .= ENTRY_LAST_NAME;
$content .= '<input type="text" name="LNAME" value=""><br />';
This will deal with the box layout
Now you need to get the data to Mailchimp
This happens in includes\functions\extra_functions\mailchimp_functions.php
change line 2 from
function mailchimp_add($email_address, $email_format) {
to
function mailchimp_add($email_address, $fname, $lname,$email_format) {
This appears to make sure that Mailchimp automatically fills in the bare bones details....
However do make sure the fields FNAME and LNAME do appear in the list you are working with
-
Re: MailChimp Newsletter Sidebox
Sorry the path for this should be
includes\templates\YOUR_TEMPLATE\sideboxes\tpl_mailchimp_sidebox.php
-
Re: MailChimp Newsletter Sidebox
Hi,
I just added this addon and I think it is all working ok.
Quick question...
Does it take a while for customers who have subscribed through the create account page to be added to the mailchimp list?
I created a dodgey account but nothing is showing in my mailchimp subscriber list.
Thanks in advance
Amanda
-
Re: MailChimp Newsletter Sidebox
Customers who have already created an account need to be manually added; they are not added retroactively.
-
Re: MailChimp Newsletter Sidebox
Thanks. I guessed that I would have to import my existing subscribers, but new customers don't seem to being added when creating a new account.
I did a test with the sidebox, which worked fine and added the subscriber.
So this is only when creating a new account and subscribing through the create account page.
Amanda :smile:
-
Re: MailChimp Newsletter Sidebox
If you use my files on a 1.3.9 Zen Cart, it works. Back up your files, use my files and retest. Then slowly, step by step, re-integrate your changes. Every time I have looked at a report of this problem, the root cause has been a bad merge.
-
Re: MailChimp Newsletter Sidebox
I have the sign up form installed and it works fine, but the only thing is that in Firefox on the Mac the input form it too long and it goes outside the sidebox. Any ideas as to why this might be happening?
-
Markup Validation Errors
Thanks for this module. It is a much better option than the built in subscribe.
I am having errors generated due to this module. When I go to w3c Markup Validation Service, I have 5 errors generated. All due to this module. Is it just me, or is everybody experiencing this?
The errors I get are...
Validation Output: 5 Errors
Line 133, Column 401: end tag for "input" omitted, but OMITTAG NO was specified
…put type="text" name="EMAIL" value=""><br /><input type="radio" name="EMAILTYP…
✉
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Line 133, Column 360: start tag was here
…mbedded-subscribe-form">Email Address:<input type="text" name="EMAIL" value=""…
Line 133, Column 464: the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified
… name="EMAILTYPE" value="html" checked>HTML <input type="radio" na…
✉
"VI delimiter" is a technical term for the equal sign. This error message means that the name of an attribute and the equal sign cannot be omitted when specifying an attribute. A common cause for this error message is the use of "Attribute Minimization" in document types where it is not allowed, in XHTML for instance.
How to fix: For attributes such as compact, checked or selected, do not write e.g <option selected ... but rather <option selected="selected" ...
Line 133, Column 465: end tag for "input" omitted, but OMITTAG NO was specified
…name="EMAILTYPE" value="html" checked>HTML <input type="radio" nam…
✉
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Line 133, Column 407: start tag was here
…pe="text" name="EMAIL" value=""><br /><input type="radio" name="EMAILTYPE" val…
Line 133, Column 532: end tag for "input" omitted, but OMITTAG NO was specified
…"radio" name="EMAILTYPE" value="text">TEXT-Only<br /><div style="margin-top: 5…
✉
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Line 133, Column 482: start tag was here
…value="html" checked>HTML <input type="radio" name="EMAILTYPE" val…
Line 133, Column 635: end tag for "input" omitted, but OMITTAG NO was specified
…><input type="submit" name="submit" value="Subscribe"></div></form></div></div>
✉
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Line 133, Column 577: start tag was here
…ly<br /><div style="margin-top: 5px;"><input type="submit" name="submit" value…
Any help would be appreciated. These are my only validation errors.
-
Re: MailChimp Newsletter Sidebox
This is on my list of things to do. I'm going to try to get to it this month.
-
Re: MailChimp Newsletter Sidebox
Cool. Glad its not something I did. Thanks for the response.
-
Re: MailChimp Newsletter Sidebox
OK, the latest version in Free Software Add Ons fixes this issue. Thanks for reporting it.
-
Re: MailChimp Newsletter Sidebox
Is there any way that when a customer creates an account and signs up for the newsletter, it does not send an email to confirm being part of the list, and instead does it automatically?
-
Re: MailChimp Newsletter Sidebox
You really do want the double opt in. Especially if someone tries to sue you for spamming them. :)
-
Re: MailChimp Newsletter Sidebox
Quote:
Originally Posted by
swguy
You really do want the double opt in. Especially if someone tries to sue you for spamming them. :)
Yeah, I understand what you are saying, but they physically checked the box, so they have already agreed to the terms..Is it even possible to do that?
-
Re: MailChimp Newsletter Sidebox
Quote:
Originally Posted by
swguy
OK, the latest version in Free Software Add Ons fixes this issue. Thanks for reporting it.
Wow. Thanks!
This works perfectly. I now have no errors on my site.
Thanks for doing this.
Chris
-
Re: MailChimp Newsletter Sidebox
Quote:
Originally Posted by
swguy
If you use my files on a 1.3.9 Zen Cart, it works. Back up your files, use my files and retest. Then slowly, step by step, re-integrate your changes. Every time I have looked at a report of this problem, the root cause has been a bad merge.
Does this answer refer to the create account page? My newsletter is going to Mail Chimp, but when someone creates an account it does not. I have a free eBook but you have to sign in. This is creating a lot of new accounts, but none of them are going to Mail chimp.
I am using Zencart 1.3.9h with newest Mail Chimp newsletter sidebox module.
Thanks, Kim
-
Re: MailChimp Newsletter Sidebox
It is possible that they're just not confirming; you won't see the subscription in MailChimp until they confirm signup.
To test, just create a new account in your store. (Delete your old one, or create a new email address.)
-
Re: MailChimp Newsletter Sidebox
Quote:
Originally Posted by
swguy
It is possible that they're just not confirming; you won't see the subscription in MailChimp until they confirm signup.
To test, just create a new account in your store. (Delete your old one, or create a new email address.)
I created a new test account with my contact us email. And did not get MailChimp sign up or anything. I just checked button for newsletter/email subscription and next page is the new account success page.
Did not see anything in my email for Mailchimp. I have my email all forwarded to one account.
Any suggestions why this is not working? What should it be doing? I am guessing it will give me page like when I use sidebox with MailChimp info...
Thanks, Kim
-
Re: MailChimp Newsletter Sidebox
You will not see a separate page like you do with the sidebox; it all happens behind the scenes.
If it isn't working, you have likely installed something incorrectly. Check your cache directory for errors and review the instructions.
-
Re: MailChimp Newsletter Sidebox
If i subscribe from sideboxes, i register firstname and lastname, but if i subscribe from create_account i only have mail address. Can anybody helpme, please?
-
Re: MailChimp Newsletter Sidebox
Is this module compatible with the FEC? That alters the create account and checkout process, so I'm not sure if they are compatible.
-
Re: MailChimp Newsletter Sidebox
You would have to merge the changes they made to account creation with the changes I made.
-
Re: MailChimp Newsletter Sidebox
I did a test install on the current zen cart. The sidebox worked perfectly. BUT ... when I went into account login or create an account .... it would get hung up on the following page:
/index.php?main_page=login&action=process
And I would get a blank page. Any ideas of what is going wrong here???
-
Re: MailChimp Newsletter Sidebox
Here is the error message that shows up in my debug logs:
PHP Warning: Cannot modify header information - headers already sent by (output started at ........../includes/languages/english/extra_definitions/mailchimp_sidebox_defines.php:20) in ........../includes/functions/functions_general.php on line 45
This is frustating....
-
Re: MailChimp Newsletter Sidebox
hey great mod software guy,
finally got it working but have some crazy stuff going on. Even with the mailchimp layoutbox disabled the signup form is at the top of my screen! wth!
anyone got any idea?
heres the site
donohues.com.au/shop/
-
Re: MailChimp Newsletter Sidebox
Not sure if this question fits here, I have installed the contrib, it works wonderfully well. (thank you swguy for the great contrib)
1. I have edited and remove the 'newsletter' url when logon in My Account (so that it doesn't show option for customers to edit, since it won't remove the subscription/or add to Mail Chimp list)
2. Disabled the 'unsubscribe' url - all newsletter activities should be managed in Mail Chimp now
3. Edited and updated the Privacy Policy as suggested by swguy in the readme file; to include a unsubscribe link (get from mail chimp setting) in the page - in place of the default unsubscribe url
Question..
How do I disallow the text/html option in the account creation page? This information also appears in account_edit page.
Appreciate any help.
-
Re: MailChimp Newsletter Sidebox
-
Re: MailChimp Newsletter Sidebox
is this compatible for v1.5
-
Re: MailChimp Newsletter Sidebox
I have installed the Mail Chimp and followed all the instructions from as far as I can tell. The sidebox subscribe works but when making a new user I get an error when i hit submit. The error is below.
Email Error: Could not execute: /usr/sbin/sendmail
When you hit back from there the user has been created and you are logged in but. It seems the new user is getting signed up but I of course dont want to have this error page.
Any ideas?
-
Re: MailChimp Newsletter Sidebox
@bkeaton - yes.
@sportrecovery - goto admin->configuration->e-mail options and choose an email option that works.
-
Re: MailChimp Newsletter Sidebox
Thanks SWGuy, turns out the Mod was fine it was our host server playing up. both our shops as it turns out didnt get an order confiratoin for 5 days but on looking at the shop admin we had a heap of orders. I am awaiting their response as to what they did.
-
Re: MailChimp Newsletter Sidebox
Hi Scott, I installed this and almost ready to go BUT I can't do the insertion of code on the "create an account" file because I'm using FEC and I don't find ANY line of code as stated on your installation instructions. I tried several words or phrases given by you but nothing. :blink:
Please advise where I'm supposed to insert the code.... (I can post here the file code if you need me to).
-
Re: MailChimp Newsletter Sidebox
Quote:
Originally Posted by
ideasgirl
Hi Scott, I installed this and almost ready to go BUT I can't do the insertion of code on the "create an account" file because I'm using FEC and I don't find ANY line of code as stated on your installation instructions. I tried several words or phrases given by you but nothing. :blink:
Please advise where I'm supposed to insert the code.... (I can post here the file code if you need me to).
Please do as I have FEC also and can not seem to get this to work.
Thanks, Kim
-
Re: MailChimp Newsletter Sidebox
FEC users - you're going to have to hire someone to do this work for you; I can't do this level of detailed integration with multiple mods for free on the forum.
-
Re: MailChimp Newsletter Sidebox
Just wanted to say thanks for the great mod swguy, installed and working like a charm on my zc 1.5 and free mailchimp account :)
-
Re: MailChimp Newsletter Sidebox
Hello,
great mod!
Does anyone know how to put the subscribe form in the header instead of in a sidebox?
-
Re: MailChimp Newsletter Sidebox
Those mischevious chimps are up to their usual tricks. Please do NOT update to MailChimp API 1.3 on your own; Newsletter Discount AND MailChimp Integration will need updates first. When you do update, both modules need to be updated at the same time; API 1.3 contains breaking changes (wrt existing code).
-
Re: MailChimp Newsletter Sidebox
The MailChimp integration has been updated to MailChimp API 1.3.
-
Re: MailChimp Newsletter Sidebox
define('BOX_MAILCHIMP_NEWSLETTER_ID','20xxxx715016');
define('BOX_MAILCHIMP_NEWSLETTER_U','xxxxx');
define('BOX_MAILCHIMP_NEWSLETTER_URL','http://YourSite.us1.list-manage.com/subscribe/post');
define('BOX_MAILCHIMP_NEWSLETTER_API_KEY','289xxxxxxx4fdc337e43f523af1578-us5');
where get the U?
http://YourSite.us1.list-manage.com/subscribe/post' the yoursite write what?
Any one help me THanks
-
Re: MailChimp Newsletter Sidebox
Hi, this is a great mod thank you for your continued support as well. I was wondering if it's possible to tweak the layout of the form. I would like to have just the "Email Address" heading, text box and submit button visible. I'm hoping to run it either on the top or bottom of my site. I'm tweaking the css properties to achieve this with a side box. I' not sure if there's a better way but any help is appreciated.
Thank you.
-
Re: MailChimp Newsletter Sidebox
Try moving it to includes/templates/YOUR_TEMPLATE/common/tpl_header.php
-
Re: MailChimp Newsletter Sidebox
Thank you for the suggestion swguy but I don't see any change at all when I place it there.:blink:
-
Re: MailChimp Newsletter Sidebox
Quote:
Originally Posted by
ledeshop
define('BOX_MAILCHIMP_NEWSLETTER_ID','20xxxx715016');
define('BOX_MAILCHIMP_NEWSLETTER_U','xxxxx');
define('BOX_MAILCHIMP_NEWSLETTER_URL','http://YourSite.us1.list-manage.com/subscribe/post');
define('BOX_MAILCHIMP_NEWSLETTER_API_KEY','289xxxxxxx4fdc337e43f523af1578-us5');
Look at your embed code given to you at mailchip
where get the U?
http://YourSite.us1.list-manage.com/subscribe/post' the yoursite write what?
Any one help me THanks
Look at what your embed code is
<!-- Begin MailChimp Signup Form -->
<link href="http://cdn-images.mailchimp.com/embedcode/slim-081711.css" rel="stylesheet" type="text/css">
<style type="text/css">
#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }
/* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
</style>
<div id="mc_embed_signup">
<form action="http://BLAH.us5.list-manage.com/subscribe/post
u=xxxxxxxxxxxxxxxx&id=xxxxxxxxx"
method="post"
Took me a few minutes to find it. :)
-
Re: MailChimp Newsletter Sidebox
ahem, have problem with the sidebox working fine but the create account form does not. Nothing is getting to mail chimp: The mailchimp log file says Unable to load listSubscribe()!
Code=250
Msg=FNAME must be provided - Please enter a value
I could have sworn I did this correctly. What in the world did I screw up?
-
Re: MailChimp Newsletter Sidebox
Has anyone figured out how to add a join groups checkbox? I am working on it, but could sure use some help...
(Am happy to hire it out too...)
Thanks!
-
Re: MailChimp Newsletter Sidebox
Hi, I am trying to install this contribution but cannot find the URL, u and id info in the HTML code.
Quote:
4. Press the Forms link for your new list.
Scroll down to the link that says "Signup Form" and click it. This will take you to a screen which will show you your signup form. Look at the HTML code. At the top of the form will be something that looks like this:
<form action="http://list-manage.com/subscribe/post" method="POST">
Note the URL.
At the bottom of the form will be something like this:
<td align="left"><INPUT TYPE='submit' NAME='submit' VALUE='Subscribe'> <input type="hidden" name="id" value="5331068383">
<input type="hidden" name="u" value="0dcb1c9808"></td>
Note the the values of "u" and "id" - you will be embedding them in the language file during the installation process.
When I click the "Forms" link, that takes me to the Create Forms page where the "Signup Form" is the default selection, and not clickable. Am I looking at the wrong place?
-
Re: MailChimp Newsletter Sidebox
You should see something like this:
Customize the Signup Form for: test
Your list's signup form is hosted on our server at: http://eepurl.com/kd_x
change the signup form's appearance
Then in the HTML below you'll see id and u.
-
Re: MailChimp Newsletter Sidebox
Quote:
Originally Posted by
swguy
You should see something like this:
Customize the Signup Form for: test
Your list's signup form is hosted on our server at:
http://eepurl.com/kd_x
change the signup form's appearance
Then in the HTML below you'll see id and u.
Thanks SWGUY!
I was able to find the info by accessing Lists > Forms > For Your Website > Signup Form Embed Code
Under the Create Embed Code button, in the "copy/paste into your site" field.
-
Re: MailChimp Newsletter Sidebox
I have installed the contribution and all seems to be working well. Thanks again SWGUY!
....
Just a little note FYI: If I position the Newsletter sidebox just below the Special sidebox, there's a [more] that appears just after Newsletter in the sidebox header and that "Newsletter [more]" becomes a link, which takes me to the special page when clicked.
If I position the Newsletter sidebox just above the Special sidebox, that fixes the issue. Strange!
-
Re: MailChimp Newsletter Sidebox
I would guess this is a bug in your template change for the specials sidebox.
-
Re: MailChimp Newsletter Sidebox
Quote:
Originally Posted by
delia
ahem, have problem with the sidebox working fine but the create account form does not. Nothing is getting to mail chimp: The mailchimp log file says Unable to load listSubscribe()!
Code=250
Msg=FNAME must be provided - Please enter a value
I could have sworn I did this correctly. What in the world did I screw up?
Hi Delia I have the same issue
I can solve that error
You are collecting the subscriber first and last names correct?
basically it is wanting the first name parameter, which you need to add in the
/includes/modules/your-template/create_account
so this (around line 339)
Code:
//--- added mailchimp
if ((int)$newsletter == 1) {
mailchimp_add($email_address, $email_format);
}
//--- End mailchimp
becomes
Code:
//--- added mailchimp
if ((int)$newsletter == 1) {
mailchimp_add($email_address, $firstname, $lastname, $email_format);
}
//--- End mailchimp
Unfortunately while this stops the error, it doesn't seem to add the user to mailchimp (or at least I am not receiving an email confirmation from mailchimp), I can't actually access mailchimp at the moment to check.
-
Re: MailChimp Newsletter Sidebox
Can anyone tell me if this mod will still add the user to the ZC database and send the welcome email we have set up with the coupon we have set to be sent to new subscribers?
We use 1.3.9h
Thanks!
-
Re: MailChimp Newsletter Sidebox
The Mailchimp Plugin doesn't do the adding to the Zen Cart database; it just adds the user to the list of email addresses in your mailchimp list (if the user requests your newsletter when he signs up).
-
Re: MailChimp Newsletter Sidebox
Hi There... could use some help.
I don't seem to be passing any data to MailChimp, nor getting the MailChimp confirmation email when creating a new user.
The only thing I can think of is that I don't have includes/modules/[my template name]/create_account.php.... there is no folder for my template in the modules folder (I am using template_default).
I modified the create_account.php file that was in the modules folder, and even included the $firstname, $lastname as suggested above, but no luck.
Any ideas? Thanks in advance for your help!
-
Re: MailChimp Newsletter Sidebox
Quote:
Originally Posted by
Thannaree
Thanks SWGUY!
I was able to find the info by accessing Lists > Forms > For Your Website > Signup Form Embed Code
Under the Create Embed Code button, in the "copy/paste into your site" field.
Hi,
i am very happy after reading this help i have succefully integrated MailChimp in my zen cart. Thnkx for developers and Thannaree
-
Re: MailChimp Newsletter Sidebox
I plan on installing the fast and easy checkout mod, does this conflict with this mod?
-
Re: MailChimp Newsletter Sidebox
Hi!
I have a client considering a switch from iContact to MailChimp because iContact (which is integrated with SalesForce) is getting screened out in gmail as spam. I read back a few pages, was unable to find answers I was looking for regarding this mod.
Is the main function of this API to provide a way for subscribers to automagically be added to MailChimp? Aside from adding/removing subscribers via your website, is there any other functionality?
For instance, one problem my client encounters is dirty code. They do a monthly newsletter, send it out, and put a copy on their site for visitors. Currently, they design the newsletter in iContact, export the html, and import it onto a page on their site. But the iContact code is littered with stuff that they want in emails (for tracking, etc) but not on their website.
Does this mod integrate design of the email campaign or provide some simple way to get ZC friendly html? Or is design still done via a gui on MailChimp?
I am currently planning to advise them to switch to MC and use this mod, regardless. But I'm looking for a simple solution to the code problems. It would be cool if that was already built into this mod.
Current thought (sorry, a bit off the subject of your mod with this):
1. Upload all images/articles to site.
2. Have their inhouse designer create Newsletter in Dreamweaver (referencing images/links to their server URL).
3. Import Newsletter html into site page.
4. Import Newsletter html into MailChimp (MC will automatically add tracking and other code, correct?).
5. Test, then send out the bulk email.
Does that system sound good or is there a flaw I'm missing?
Thanks,
Mike
-
Re: MailChimp Newsletter Sidebox
The scope of this mod does not include a GUI for newsletter design. It just does the adds to the MailChimp subscriber list from Zen Cart.
If you want to put links to your newsletters on your Zen Cart page, you can do that too. Mailchimp provides an archive service with links to the last 10 newsletters; you can put this on an "About Us" page or an EZPage.
-
Re: MailChimp Newsletter Sidebox
-
Re: MailChimp Newsletter Sidebox
Hi I think the answer may be buried in this thread but I cant find it.... If using the sidebox for newsletter sign up, will a zencart profile be created if First and Last name Field inputs are provided or would this be custom code?
I understand that the reverse is true, on sign up page, mail chimp can be offered but wondering about the other way around.
Thank you
-
Re: MailChimp Newsletter Sidebox
Quote:
Originally Posted by
makenoiz
Hi I think the answer may be buried in this thread but I cant find it.... If using the sidebox for newsletter sign up, will a zencart profile be created if First and Last name Field inputs are provided
No. Account creation requires much more information, such as address and phone number.
-
Re: MailChimp Newsletter Sidebox
Quote:
Originally Posted by
nigelt74
Hi Delia I have the same issue
I can solve that error
You are collecting the subscriber first and last names correct?
basically it is wanting the first name parameter, which you need to add in the
/includes/modules/your-template/create_account
so this (around line 339)
Code:
//--- added mailchimp
if ((int)$newsletter == 1) {
mailchimp_add($email_address, $email_format);
}
//--- End mailchimp
becomes
Code:
//--- added mailchimp
if ((int)$newsletter == 1) {
mailchimp_add($email_address, $firstname, $lastname, $email_format);
}
//--- End mailchimp
Unfortunately while this stops the error, it doesn't seem to add the user to mailchimp (or at least I am not receiving an email confirmation from mailchimp), I can't actually access mailchimp at the moment to check.
Did you ever get this to pass the information to mailchimp? I still only get the email address.
-
Re: MailChimp Newsletter Sidebox
I figured it out.
/includes/modules/your-template/create_account
Code:
mailchimp_add($email_address, $email_format);
becomes
Code:
mailchimp_add($email_address, $firstname, $lastname, $company, $email_format);
includes/functions/extra_functions/mailchimp_functions.php
Code:
function mailchimp_add($email_address, $email_format) {
include_once(DIR_WS_CLASSES . "MCAPI.class.php");
$api = new MCAPI(BOX_MAILCHIMP_NEWSLETTER_API_KEY);
$merge_vars = array('');
becomes
Code:
function mailchimp_add($email_address, $firstname, $lastname, $company, $email_format) {
include_once(DIR_WS_CLASSES . "MCAPI.class.php");
$api = new MCAPI(BOX_MAILCHIMP_NEWSLETTER_API_KEY);
$merge_vars = array('FNAME'=>$firstname, 'LNAME'=>$lastname, 'COMPANY'=>$company);
Hopefully this is the right way to do this.
-
Re: MailChimp Newsletter Sidebox
Does this mod work on V151 please?
-
Re: MailChimp Newsletter Sidebox
-
Re: MailChimp Newsletter Sidebox
Quote:
Originally Posted by
robraymond
I figured it out.
/includes/modules/your-template/create_account
Code:
mailchimp_add($email_address, $email_format);
becomes
Code:
mailchimp_add($email_address, $firstname, $lastname, $company, $email_format);
includes/functions/extra_functions/mailchimp_functions.php
Code:
function mailchimp_add($email_address, $email_format) {
include_once(DIR_WS_CLASSES . "MCAPI.class.php");
$api = new MCAPI(BOX_MAILCHIMP_NEWSLETTER_API_KEY);
$merge_vars = array('');
becomes
Code:
function mailchimp_add($email_address, $firstname, $lastname, $company, $email_format) {
include_once(DIR_WS_CLASSES . "MCAPI.class.php");
$api = new MCAPI(BOX_MAILCHIMP_NEWSLETTER_API_KEY);
$merge_vars = array('FNAME'=>$firstname, 'LNAME'=>$lastname, 'COMPANY'=>$company);
Hopefully this is the right way to do this.
Hi,
Thanks for that - I am trying to get this work for fast and easy check out.
I've done everything else as you've stated except I changed the code in /includes/modules/fec_create_account
But for whatever reason it doesn't want to work - any ideas?
-
Re: MailChimp Newsletter Sidebox
Hi,
I got this to work with FEC,
simply add the code
if ((int)$newsletter == 1) {
mailchimp_add($email_address, $firstname, $lastname, $email_format);
}
to /includes/modules/fec_create_account instead of /includes/modules/your-template/create_account and follow the instructions above for includes/functions/extra_functions/mailchimp_functions.php. I made a typo in mailchimp_functions.php hence the reason for my e-mail above - but once I fixed it, everything worked as it should.
-
Re: MailChimp Newsletter Sidebox
The MailChimp guys fiddle constantly with the anchor tags and layout of their website, but I do my best to keep the instructions on my home page current. I just did a new install and noticed that the current README descriptions don't correlate precisely to the links and positions on the MailChimp page, but the instructions on the help page on my site have been updated. Go there if you're having trouble figuring out what to do.
-
Re: MailChimp Newsletter Sidebox
Hi SWguy,
The sidebox function works great. I kept only the email address in the form, and then when the user clicks submit they are directed to the full sign up page to add additional information. I am having no issues with side box email list adds. My website is www.SETboutique.com.
My issues are with create account functions:
I followed step 5 in the installation instructions, but when I created a test account I didn't receive any emails from mailchimp.
I then followed the advice from a previous post and edited /includes/modules/custom_template/create_account.php to the following:
//--- added mailchimp
if ((int)$newsletter == 1) {
mailchimp_add($email_address, $firstname, $lastname, $email_format);
}
//--- End mailchimp
I created a new test account but I still didn't receive any emails from mailchimp.
I then took additional advice from a previous post and edited /includes/functions/extra_functions/mailchimp_functions.php to the following:
function mailchimp_add($email_address, $fname, $lname,$email_format) {
I created a new test account but I still didn't receive any emails from mailchimp.
Could you offer any additional advice? I am using ZC1.5.1, and mailchimp3.0. I added a new API for the use of this mod. I already had an API in mailchimp but I added a new one for this coding (just a FYI in case it helps).
Thank you,
Lindsay
-
Re: MailChimp Newsletter Sidebox
I'd suggest you install the software I wrote and get that working prior to making any changes. This includes the API version I packaged up.
-
Re: MailChimp Newsletter Sidebox
Hi,
I made the changes only because I couldn't get the original to work as stated before. I can remove the changes if you don't agree with them. But can you offer any advice for the create account functioning?
Thank you,
Lindsay
-
Re: MailChimp Newsletter Sidebox
Very nice module! Works great on ZC 1.5.1. I've made some slight changes to the coding. If your country doesn't obligate you to use a double opt-in procedure you can use the
PHP Code:
$double_optin = false
flag as described in the API documentation http://apidocs.mailchimp.com/api/1.3...cribe.func.php . Only make this change if your country allow you to and if your customers opt-in on your create account page!
I've found it very annoying for the customers to get two e-mails when they sign up at your store and place a checkmark that they want to receive a e-mail newsletter already.
For those that aren't that skilled in programming:
This line of code:
PHP Code:
$retval = $api->listSubscribe($list_id, $email_address, $merge_vars, $format);
Becomes
PHP Code:
$retval = $api->listSubscribe($list_id, $email_address, $merge_vars, $format, $double_optin = false);
Some minor improvement would be to make mailchimp update your list when someone changes their info on their 'My Account' page, I will code something for that tonight:-)
-
Re: MailChimp Newsletter Sidebox
Allright, coded the update function after my diner. When a customer updates his or her information on the "my account" page, this change will be synced with your Mail Chimp list. Here's how I dit it:
In mailchimp_functions.php from this great module I added my own function at the end of the file. Note that I added a field for Firstname and Lastname. You can do that, but if you don't want to just delete everything with firstname and lastname in it:
PHP Code:
//Mailchimp update function: update customers data to the mailchimp list.
function mailchimp_update($email_address_old, $email_address, $firstname, $lastname, $email_format) {
include_once(DIR_WS_CLASSES . "MCAPI.class.php");
$api = new MCAPI(BOX_MAILCHIMP_NEWSLETTER_API_KEY);
$merge_vars = array('FNAME'=>$firstname, 'LNAME'=>$lastname, 'EMAIL'=>$email_address);
if ($email_format == 'TEXT') {
$format = 'text';
} else {
$format = 'html';
}
$list_id = BOX_MAILCHIMP_NEWSLETTER_ID;
$retval = $api->listUpdateMember($list_id, $email_address_old, $merge_vars, $format);
if ($api->errorCode){
$errorMessage = "Unable to update member info with listUpdateMember()!\n" .
"\tCode=".$api->errorCode."\n" .
"\tMsg=".$api->errorMessage."\n";
$file = DIR_FS_SQL_CACHE . '/' . 'MailChimp.log';
if ($fp = @fopen($file, 'a')) {
fwrite($fp, $errorMessage);
fclose($fp);
}
}
}
In htdocs/includes/templates/YOURTEMPLATE/templates/tpl_account_edit_default.php you must make an invisible field to be able to pass the old email address (email_address_old) to the mailchimp_update() function. I've placed this line below the entry for the e-mail address, but you can paste in anywhere as long as it is within the form:
PHP Code:
<?php echo zen_draw_hidden_field('email_address_old', $account->fields['customers_email_address'], 'id="email-address-old"') ?>
At last you must make a call to the function. When the form is submitted it will use /includes/modules/pages/account_edit/header_php.php to make all the magic happen. Paste the following around line 154 above the line:
$zco_notifier->notify('NOTIFY_HEADER_ACCOUNT_EDIT_UPDATES_COMPLETE');
PHP Code:
mailchimp_update($email_address_old, $email_address, $firstname, $lastname, $email_format);
That's all! Now your mailchimp list will be updated as soon as your customer edits his or her information! Next thing to do is to make a sync for the "Subscribe or unsubscribe from newsletters." page.
-
Re: MailChimp Newsletter Sidebox
Note: Only usefull if you've included additional info in your mailchimp list such as first name, last name, country etc.
I've made a really small improvement.
I noticed that when a non-customer signs up for the maillinglist with the sidebox module the customer is added to the mailchimp list as supposed to. But when that non-costumer is going to be your customer, the API doesn't update the name field and lastname field (this is only if you've made some changes yourself to the original code to include additional customer information). With a really small change you can let the mailchimp API update the information as soon as the non-costumer becomes a customer.
In mailchimp_functions.php add
PHP Code:
$update_existing = true
so that the line becomes (in my case)
PHP Code:
$retval = $api->listSubscribe($list_id, $email_address, $merge_vars, $format, $double_optin = false, $update_existing = true);
When a newsletter only person signs up for a new account, all the info will be automatically updated to mailchimp!
-
Re: MailChimp Newsletter Sidebox
Quote:
Originally Posted by
swguy
I'd suggest you install the software I wrote and get that working prior to making any changes. This includes the API version I packaged up.
Hi, thanks for the great mod. I'm having the same trouble in the create account process. The account is created there is no confirmation email from mailchimp as expected. I would appreciate any advice. Thank you!
-
Re: MailChimp Newsletter Sidebox
Quote:
Originally Posted by
joyjoy
Hi, thanks for the great mod. I'm having the same trouble in the create account process. The account is created there is no confirmation email from mailchimp as expected. I would appreciate any advice. Thank you!
I reinstalled, it's okay now. But I have another questions. Is there a way to have the confirmation screen display as a popup window? Thank you.
-
Re: MailChimp Newsletter Sidebox
Let me preface by saying I'm a newbie.
I'm trying to install mailchimp and am following the readme and the instructions aren't completely clear.
In the readme it states:
At the bottom of the form will be something like this:
<td align="left"><INPUT TYPE='submit' NAME='submit' VALUE='Subscribe'>
<input type="hidden" name="id" value="5331068383">
<input type="hidden" name="u" value="0dcb1c9808"></td>
Note the the values of "u" and "id" - you will be
embedding them in the language file during the installation process
In the html, the only thing I found with 'input type', which was near the top was this:
</label>
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
</div>
<div id="mce-responses" class="clear">
<div class="response" id="mce-error-response" style="display:none"></div>
<div class="response" id="mce-success-response" style="display:none"></div>
</div> <div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
</form>
The parts "u" and "id" I need to take a note of, there is no "u" and the id ="mce-success-response"
Then it states:
2. Edit the file
includes/languages/english/extra_definitions/mailchimp_sidebox_defines.php
set the BOX_MAILCHIMP_NEWSLETTER_ID to the "id" value you noted
in step 3 of the pre-installation instructions.
set the BOX_MAILCHIMP_NEWSLETTER_U to the "u" value you noted
in step 3 of the pre-installation instructions.
Is that the right "id" value and what is the "u" value?
Any help greatly appreciated!
-
Re: MailChimp Newsletter Sidebox
You'll find the id and u values in your Mail Chimp sign-up form. You won't actually use the sign-up form, at least not for this plugin, but that is where you'll find your id and u values.
-
Re: MailChimp Newsletter Sidebox
That was the html I posted from the signup form off their site. Didn't have any "u" values.
-
Re: MailChimp Newsletter Sidebox
The html you posted is not a complete sign up form. You can use the General Forms option, skip right the the Share It tab click the 'Want to embed a form on a web page?' and in the 'Copy/paste onto your site' box will be lots of html code.
The u and id values will be in a url string about ten lines down starting with <form action=
-
Re: MailChimp Newsletter Sidebox
Thanks jeking, it was under 'embedded form code' the 'copy/paste' onto your site section.
I'm having issues with these instructions:
Set BOX_MAILCHIMP_NEWSLETTER_URL to the URL value you noted in
step 3 of the pre-installation instructions
I didn't provide any url, so do I just put the site url or the url I see in the form 'code'?
thanks !
-
Re: MailChimp Newsletter Sidebox
www.sunnysihota.com/zen
I got the newsletter setup on my site! good times
However I'd like some help with some editing.
How do I get rid of the 'newsletter' title so the email suscribe and form is only showing.
I want to get rid of the 'html or text only' options, anyone know how to do that?
2 questions, hopefully someone can help, thanks in advance!
-
Re: MailChimp Newsletter Sidebox
Quote:
Originally Posted by
crexis
Thanks jeking, it was under 'embedded form code' the 'copy/paste' onto your site section.
I'm having issues with these instructions:
Set BOX_MAILCHIMP_NEWSLETTER_URL to the URL value you noted in
step 3 of the pre-installation instructions
I didn't provide any url, so do I just put the site url or the url I see in the form 'code'?
thanks !
It's the mailchimp url from the form code.
-
Re: MailChimp Newsletter Sidebox
Ok I added this for the newsletter_url: http://sunnysihota.us7.list-manage.com/subscribe/post?
www.sunnysihota.com/zen
Do you know which file I would go into to remove the title "newsletter" above the form, and also changed the words to suscribe to the form/newsletter.
I want to get rid of the 'html or text' option and just auto-make it 'html', where can I change this in? I couldn't find it in the admin.
thanks for the help
-
Re: MailChimp Newsletter Sidebox
Hi All,
Is it possible yet to integrate this add-on to the customer signup process ?
Thanks