Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Mar 2009
    Posts
    435
    Plugin Contributions
    0

    Default remove 'Newsletter Unsubscribe' link

    Hi I need to remove the 'Newsletter Unsubscribe' link from the left hand bottom column and also remove any references to the newsletter from my website, if anyone knows of anywhere else I've missed with a link or anything to do with the news letter please let me know and also if you know how I can do the above that would be great.

    Many thanks

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: remove 'Newsletter Unsubscribe' link

    That link is turnoffable in Admin - Configuration - Email Options.

    The newsletter is also mentioned on the Create Account page, but you'll have to remove or comment it out in the template file.

  3. #3
    Join Date
    Mar 2009
    Posts
    435
    Plugin Contributions
    0

    Default Re: remove 'Newsletter Unsubscribe' link

    Thank you, I've removed that link by using the admin, but on the create account page ive managed to remove the text but cannot find where to remove the actual section for the newsletter, as you can still the radio buttons are still there. How do I find which file that bit is in?

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: remove 'Newsletter Unsubscribe' link

    It looks like you would remove or comment out lines 174 through 179 in includes/templates/template_default_tpl_modules_create_account_default.php and save it to your override folder.

    You want those radio buttons though, so your customers can choose plain text or HTML emails.

  5. #5
    Join Date
    Mar 2009
    Posts
    435
    Plugin Contributions
    0

    Default Re: remove 'Newsletter Unsubscribe' link

    I cannot find a file called template_default_tpl_modules_create_account_default.php

    in includes/templates/

    Did you mean includes/templates/template_defaults/templates/tpl_create_account_default.php

    as that file only goes up to line 31, so a bit confused as to exactly which file to edit and where abouts it is?

    Thanks

  6. #6
    Join Date
    Mar 2009
    Posts
    435
    Plugin Contributions
    0

    Default Re: remove 'Newsletter Unsubscribe' link

    and also the 'e-mail details', would those be the e-mails recieved by customers for their orders etc as long as its seperate from the news letter than thats ok and we will keep the radio buttons if we really need them?

  7. #7
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: remove 'Newsletter Unsubscribe' link

    Sorry - includes/templates/template_default/templates/tpl_modules_create_account_default.php

    I believe that choice applies to all emails, so it should probably be there.

  8. #8
    Join Date
    Mar 2009
    Posts
    435
    Plugin Contributions
    0

    Default Re: remove 'Newsletter Unsubscribe' link

    Ok thanks. This is all the code in tpl_modules_create_account_default.php; I can't see which bit will remove the 'subscribe to our newsletter' and the check box for it also. If you know please let me know. Many thanks

    <?php
    /**
    * Page Template
    *
    * Loaded automatically by index.php?main_page=create_account.<br />
    * Displays Create Account form.
    *
    * @package templateSystem
    * @copyright Copyright 2003-2007 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: tpl_create_account_default.php 5523 2007-01-03 09:37:48Z drbyte $
    */
    ?>
    <div class="centerColumn" id="createAcctDefault">

    <h1 id="createAcctDefaultHeading"><?php echo HEADING_TITLE; ?></h1>

    <?php echo zen_draw_form('create_account', zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onsubmit="return check_form(create_account);"') . zen_draw_hidden_field('action', 'process') . zen_draw_hidden_field('email_pref_html', 'email_format'); ?>
    <h4 id="createAcctDefaultLoginLink"><?php echo sprintf(TEXT_ORIGIN_LOGIN, zen_href_link(FILENAME_LOGIN, zen_get_all_get_params(array('action')), 'SSL')); ?></h4>

    <fieldset>
    <legend><?php echo CATEGORY_PERSONAL; ?></legend>

    <?php require($template->get_template_dir('tpl_modules_create_account.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_create_account.php'); ?>

    </fieldset>

    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SUBMIT, BUTTON_SUBMIT_ALT); ?></div>
    </form>
    </div>

  9. #9
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: remove 'Newsletter Unsubscribe' link

    One more time - I'll get this right eventually:

    includes/templates/template_default/templates/tpl_modules_create_account.php

    The lines you want to remove or comment out:

    <?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 } ?>

  10. #10
    Join Date
    Mar 2009
    Posts
    435
    Plugin Contributions
    0

    Default Re: remove 'Newsletter Unsubscribe' link

    Yep that's it. Thank you!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Remove unsubscribe button from unsubscribe page
    By IA7X ShadowsI in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Oct 2010, 08:30 PM
  2. Changing Size of 'Newsletter Unsubscribe' Link
    By jrim in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 26 Apr 2009, 04:55 PM
  3. Newsletter Unsubscribe - Input Box Instead of Profile Link?
    By Sidecutter in forum General Questions
    Replies: 3
    Last Post: 6 Nov 2008, 04:44 AM
  4. Replies: 0
    Last Post: 18 Jun 2007, 04:44 AM

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