New Zenner
- Join Date:
- Mar 2009
- Location:
- New Zealand
- Posts:
- 76
- Plugin Contributions:
- 0
MailChimp Newsletter Sidebox
robraymond:
I figured it out.
/includes/modules/your-template/create_account
mailchimp_add($email_address, $email_format);
> becomes
> ```
mailchimp_add($email_address, $firstname, $lastname, $company, $email_format);
includes/functions/extra_functions/mailchimp_functions.php
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
> ```
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?