Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21
  1. #11
    Join Date
    Jun 2007
    Location
    Zurich, Switzerland
    Posts
    23
    Plugin Contributions
    0

    Default Re: remove newsletter

    Here is a way to remove the newsletter field. Open includes/templates/YOURTEMPLATE/templates/tpl_modules_create_account.php
    and find the following code:
    Code:
    <fieldset>
    <legend><?php echo ENTRY_EMAIL_PREFERENCE; ?></legend>
    <?php if (ACCOUNT_NEWSLETTER_STATUS != 0) { ?>
    <?php echo zen_draw_checkbox_field('newsletter', '1', $newsletter, 'id="newsletter-checkbox"') . '<label class="checkboxLabel" for="newsletter-checkbox">' . ENTRY_NEWSLETTER . '</label>' . (zen_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="alert">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?>
    <br class="clearBoth" />
    <?php } ?>
    
    <?php echo zen_draw_radio_field('email_format', 'HTML', ($email_format == 'HTML' ? true : false),'id="email-format-html"') . '<label class="radioButtonLabel" for="email-format-html">' . ENTRY_EMAIL_HTML_DISPLAY . '</label>' .  zen_draw_radio_field('email_format', 'TEXT', ($email_format == 'TEXT' ? true : false), 'id="email-format-text"') . '<label class="radioButtonLabel" for="email-format-text">' . ENTRY_EMAIL_TEXT_DISPLAY . '</label>'; ?>
    <br class="clearBoth" />
    </fieldset>
    Now replace it with this code:

    Code:
    <?php if (ACCOUNT_NEWSLETTER_STATUS != 0) { ?>
    <fieldset>
    <legend><?php echo ENTRY_EMAIL_PREFERENCE; ?></legend>
    <?php echo zen_draw_checkbox_field('newsletter', '1', $newsletter, 'id="newsletter-checkbox"') . '<label class="checkboxLabel" for="newsletter-checkbox">' . ENTRY_NEWSLETTER . '</label>' . (zen_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="alert">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?>
    <br class="clearBoth" />
    <?php echo zen_draw_radio_field('email_format', 'HTML', ($email_format == 'HTML' ? true : false),'id="email-format-html"') . '<label class="radioButtonLabel" for="email-format-html">' . ENTRY_EMAIL_HTML_DISPLAY . '</label>' .  zen_draw_radio_field('email_format', 'TEXT', ($email_format == 'TEXT' ? true : false), 'id="email-format-text"') . '<label class="radioButtonLabel" for="email-format-text">' . ENTRY_EMAIL_TEXT_DISPLAY . '</label>'; ?>
    <br class="clearBoth" />
    </fieldset>
    <?php } ?>
    This way, if the "Show Newsletter Checkbox" option in the backend is set to 0, no entry field will be shown.

  2. #12
    Join Date
    Jun 2007
    Posts
    72
    Plugin Contributions
    0

    Default Re: remove newsletter

    Just wanted to say thank you for this post, it was on point and took care of what I wanted to do...thanks!

  3. #13
    Join Date
    Jun 2006
    Location
    Austin, TX
    Posts
    25
    Plugin Contributions
    0

    Default Re: remove newsletter

    awesome, just what I was looking for. trying to make the create account page as simple as possible for the customer. thanks =)

  4. #14
    Join Date
    Nov 2007
    Posts
    22
    Plugin Contributions
    0

    Default Re: remove newsletter

    Thanks this thread helps.

    turn off the newsletter subscribe box in admin>configuration>customer details
    My Zen Cart==
    Version: 1.3.7.1

  5. #15
    Join Date
    May 2008
    Location
    Virginia Beach, Virginia, United States
    Posts
    52
    Plugin Contributions
    0

    Default Re: remove newsletter

    Even after turning it off in the admin console I was having problems. But I followed tuor's advice and it no longer shows up. Thanks tuor!

  6. #16
    Join Date
    Nov 2008
    Posts
    44
    Plugin Contributions
    1

    Default Re: remove newsletter

    If you are trying to get rid of the newsletter link in the orders history section of a user's account page...

    https://some.domain.tld/index.php?main_page=account

    ...look at the code, where it shows:

    PHP Code:
    <?php
      
    if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK !='false' or CUSTOMERS_PRODUCTS_NOTIFICATION_STATUS !='0') {
    ?>
    <h2><?php echo EMAIL_NOTIFICATIONS_TITLE?></h2>
    <ul id="myAccountNotify" class="list">
    <?php
      
    if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK=='true') {
    ?>
    <li><?php echo ' <a href="' zen_href_link(FILENAME_ACCOUNT_NEWSLETTERS'''SSL') . '">' EMAIL_NOTIFICATIONS_NEWSLETTERS '</a>'?></li>
    <?php //endif newsletter unsubscribe ?>
    <?php
      
    if (CUSTOMERS_PRODUCTS_NOTIFICATION_STATUS == '1') {
    ?>
    <li><?php echo ' <a href="' zen_href_link(FILENAME_ACCOUNT_NOTIFICATIONS'''SSL') . '">' EMAIL_NOTIFICATIONS_PRODUCTS '</a>'?></li>

    <?php //endif product notification ?>
    </ul>

    <?php // endif don't show unsubscribe or notification ?>
    ...or, in plain English, goto admin console -> Configuration -> E-Mail Options, then set Newsletter "Unsubscribe Link" to false... and you won't see the newsletter link.
    What do you mean it wouldn't work, so you removed all those annoying PHP tags....?!

  7. #17
    Join Date
    Jan 2009
    Posts
    54
    Plugin Contributions
    0

    Default Re: remove newsletter

    Can Tuor's reply above also be used to remove the whole section on the My Account page?

    Alan.

  8. #18
    Join Date
    Apr 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: remove newsletter

    thanks

  9. #19
    Join Date
    May 2009
    Posts
    59
    Plugin Contributions
    0

    Default Re: remove newsletter

    Quote Originally Posted by coffee granules View Post

    ...or, in plain English, goto admin console -> Configuration -> E-Mail Options, then set Newsletter "Unsubscribe Link" to false... and you won't see the newsletter link.
    Thanks Coffee Granules- your plain english instruction worked great- just what I needed!
    btolly

  10. #20
    Join Date
    Feb 2010
    Posts
    23
    Plugin Contributions
    0

    Default Re: remove newsletter

    Anyone know how to do this in the new version?

    1.3.9f?

    https://yorkshiregardencentre.co.uk/...create_account

    Wanting to hide the entire bottom box on the page please.
    <a href="http://www.yorkshiregardencentre.co.uk">The Yorkshire Garden Centre</a>

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. remove 'Newsletter Unsubscribe' link
    By Sushigal in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 10 Jun 2011, 02:18 PM
  2. remove newsletter
    By maxy007 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 8 Jan 2011, 12:42 AM
  3. Remove Newsletter sign-up option
    By kidzcomfort in forum General Questions
    Replies: 1
    Last Post: 3 Oct 2008, 09:43 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