Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / remove 'Newsletter Unsubscribe' link

remove 'Newsletter Unsubscribe' link

Views: 5,922

Results 1 to 13 of 13
28 Jun 2010, 15:48
#1
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

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

28 Jun 2010, 16:05
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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.

29 Jun 2010, 08:38
#3
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

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?

29 Jun 2010, 08:49
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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.

29 Jun 2010, 09:39
#5
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

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

29 Jun 2010, 09:46
#6
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

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?

29 Jun 2010, 10:12
#7
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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.

29 Jun 2010, 11:02
#8
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

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>
29 Jun 2010, 11:43
#9
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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 } ?>
29 Jun 2010, 11:53
#10
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Re: remove 'Newsletter Unsubscribe' link

Yep that's it. Thank you! :clap:

29 Jul 2010, 13:51
#11
glenara avatar

glenara

New Zenner

Join Date:
Jul 2010
Location:
Edmonton, Alberta, Canada
Posts:
13
Plugin Contributions:
0

Re: remove 'Newsletter Unsubscribe' link

I realize you probably have made all the changes but I thought I should point out that there is a configuration option in case others refer to this post for help:

Configuration > Customer Details > Show Newsletter Checkbox

It's probably set to "1", change it to "0".

Then you will probably want to change the fieldset's legend value:
includes/languages/english.php

//define('ENTRY_EMAIL_PREFERENCE','Newsletter and Email Details');
  define('ENTRY_EMAIL_PREFERENCE','Email Preference');

I tend to keep the original text in tact so I just comment out the line and create a new line customized to my liking.

Glen

03 Aug 2010, 10:56
#12
pjd avatar

pjd

New Zenner

Join Date:
Feb 2007
Posts:
20
Plugin Contributions:
0

Re: remove 'Newsletter Unsubscribe' link

A VARIATION ON A THEME....
using 1.3.9e

I WANT to allow newsletter subscription at account creation, and I want to allow them to UNsubscribe (or subscribe) at a later date.

Removing it in Customer Details removes it altogether.

It seems that removing the link in email options also removes it from the MY ACCOUNT page. I want to allow them to UN subscribe (or subscribe) from the MY ACCOUNT page, just not from the Information Sidebox.

How can Newsletter Unsubscribe be removed from the sidebox ONLY. (perhaps css?)

I havnt found this twist in any posts so far. Any ideas for this. Thanks.

10 Jun 2011, 13:18
#13
nitesh107 avatar

nitesh107

New Zenner

Join Date:
Jun 2011
Posts:
22
Plugin Contributions:
0

Re: remove 'Newsletter Unsubscribe' link

how to remove 'Newsletter copyright text???