Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2007
    Location
    Southern Maine
    Posts
    281
    Plugin Contributions
    0

    Default Anyone know how to add field for Mailchimp to sidebox?

    Add a field to my newsletter sidebox? I am using mailchimp, and would like to add a field or two to my sidebox. I know very little about coding, but was able to get a few radio buttons to show up, but they had weird text with them. I would like the buttons to be yes and no buttons.

    Could someone tell me which files I would need to modify to get the following:

    The words BYG Member above the buttons
    the words yes and no beside the corresponding button

    and lastly, how do I get the buttons to actually work so the choice gets sent to mailchimp? I know I need to create a table for the input from the new buttons at mailchimp, and have done it.

    I have been fiddling by copying/pasting then taking a look at what I changed, but at one point I got a blank page, so I stopped...

    I basically need a little push in the right direction.....ok, fine. A hard shove.

  2. #2
    Join Date
    Mar 2005
    Location
    Tempe, AZ
    Posts
    324
    Plugin Contributions
    0

    Default Re: Anyone know how to add field for Mailchimp to sidebox?

    Quote Originally Posted by daneh View Post
    Add a field to my newsletter sidebox? I am using mailchimp, and would like to add a field or two to my sidebox. I know very little about coding, but was able to get a few radio buttons to show up, but they had weird text with them. I would like the buttons to be yes and no buttons.

    Could someone tell me which files I would need to modify to get the following:

    The words BYG Member above the buttons
    the words yes and no beside the corresponding button

    and lastly, how do I get the buttons to actually work so the choice gets sent to mailchimp? I know I need to create a table for the input from the new buttons at mailchimp, and have done it.

    I have been fiddling by copying/pasting then taking a look at what I changed, but at one point I got a blank page, so I stopped...

    I basically need a little push in the right direction.....ok, fine. A hard shove.
    The file you mod is \includes\templates\Custom\sideboxes\tpl_mailchimp_sidebox.php

    Around line 11
    $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 />';

    You can see here i added customer first and last name.

    If i am right to get the radio buttons to work copy
    $content .= '<input type="radio" name="EMAILTYPE" value="html" checked>' . ENTRY_EMAIL_HTML_DISPLAY . '&nbsp; &nbsp;<input type="radio" name="EMAILTYPE" value="text">' . ENTRY_EMAIL_TEXT_DISPLAY;

    Edit name EMAILTYPE to INTERESTS value="YES" checked

    You would have to create a define in your launges/english file that would be for example . ENTRY_INTERESTS_YES_DISPLAY and ENTRY_INTERESTS_NO_DISPLAY

    So if i am correct your new code would look like this:

    $content .= '<input type="radio" name="INTERESTS" value="Yes" checked>' . ENTRY_INTERESTS_YES_DISPLAY . '&nbsp; &nbsp;<input type="radio" name="INTERESTS" value="No">' . ENTRY_INTERESTS_NO_DISPLAY;

    In the English file it would be

    define('ENTRY_INTERESTS_YES_DISPLAY','Yes');
    define('ENTRY_INTERESTS_NO_DISPLAY','No')
    I hope this help test it out.
    Lextechs.com Powered By ZenCart

 

 

Similar Threads

  1. Replies: 4
    Last Post: 20 Mar 2010, 02:54 AM
  2. does anyone know how to add this ad on module
    By angelstubes in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 20 Oct 2009, 03:34 PM
  3. Anyone know how to align text for EZ pages from the Admin???
    By tclayla in forum Customization from the Admin
    Replies: 11
    Last Post: 15 Jan 2009, 03:15 AM
  4. anyone know the php code for the 'add to cart' button
    By what44 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Nov 2007, 05:00 PM
  5. anyone know how to add a surcharge for certain zones?
    By b3motorsports in forum Addon Payment Modules
    Replies: 4
    Last Post: 14 Aug 2006, 10:45 AM

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