I love this one!! Thank you!
Quick q:
What files I need to mod to ad an extra field (like First Name)?
Thanks!
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.
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
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.
Is there a possibility to change the subscribe button in the Mailchimp sidebox?
I want to have the same look as my other buttons![]()
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
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.
$(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
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
Sorry the path for this should be
includes\templates\YOUR_TEMPLATE\sideboxes\tpl_mailchimp_sidebox.php
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
Customers who have already created an account need to be manually added; they are not added retroactively.
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.
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![]()
Bookmarks