Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2010
    Posts
    362
    Plugin Contributions
    0

    Default Modify email newsletter signup - reroute to Mail Chimp

    We're setting up a Mail Chimp account to handle our email newsletter. To that end, we want emails gathered on the new account and user account pages to be directed to Mail Chimp and not to the ZC database.

    I can figure out the Mail Chimp API, but I'm stumped as to how I get the customer's email address from the account page. Right now it looks like ZC just sends a zenid to the database:

    <form name="account_newsletter" action="https://quinceandco.com/store/index.php?main_page=account_newsletters&amp;zenid=ccf906e9ecfcb26b4591fec4e64e26 f0" method="post"><input type="hidden" name="action" value="process" />

    Is there a different variable that I can use that will contain the email address and not a zenid?

  2. #2
    Join Date
    Sep 2006
    Location
    USA
    Posts
    291
    Plugin Contributions
    0

    Default Re: Modify email newsletter signup - reroute to Mail Chimp

    Signature not needed

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,708
    Plugin Contributions
    123

    Default Re: Modify email newsletter signup - reroute to Mail Chimp

    If you use my Mailchimp Integration contribution, this problem is already solved. Click the Plugins link at the top of the page and search for MailChimp.
    That Software Guy. My Store: Zen Cart Modifications
    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.

  4. #4
    Join Date
    Dec 2010
    Posts
    362
    Plugin Contributions
    0

    Default Re: Modify email newsletter signup - reroute to Mail Chimp

    Thanks -- I'll check that out. I did find a mailchimp plugin, but it was for a sidebox and we don't use those. I'm assuming the one you refer to works with the newsletter signup on the account page?

  5. #5
    Join Date
    Dec 2010
    Posts
    362
    Plugin Contributions
    0

    Default Re: Modify email newsletter signup - reroute to Mail Chimp

    Hi SW Guy -- I installed your plugin, but it only seems to work as a sidebox (which we don't use in our layout). I was able to insert the sidebox code directly onto the account_newsletter template, but it still requires that the user enter their email address manually.

    Is it possible to grab the users email address and have that pre-fill the form field?

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,708
    Plugin Contributions
    123

    Default Re: Modify email newsletter signup - reroute to Mail Chimp

    Sure. Assuming the customer is logged in you want something like this:

    Code:
        if($_SESSION['customer_id']) {
          $sql = "SELECT customers_email_address  
                  FROM " . TABLE_CUSTOMERS . " 
                  WHERE customers_id = :customersID";
    
          $sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer');
          $check_customer = $db->Execute($sql);
          $customer_email= $check_customer->fields['customers_email_address'];
      ... then you can fill in your field with $customer_email
    That Software Guy. My Store: Zen Cart Modifications
    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.

 

 

Similar Threads

  1. v150 Newsletter Sidebox & Newsletter signup
    By meljen in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Nov 2012, 09:44 PM
  2. Replies: 6
    Last Post: 5 Dec 2009, 01:00 AM
  3. Mail Chimp sidebox not working
    By SHokuf in forum Addon Sideboxes
    Replies: 0
    Last Post: 16 Jul 2008, 09:34 PM
  4. Newsletter Signup
    By Rebelwax in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 29 Nov 2007, 04:45 PM
  5. Mail Chimp Header?
    By flipjargendy in forum Addon Sideboxes
    Replies: 0
    Last Post: 28 Jul 2007, 06:44 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR