Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Removing newsletter and email subscription box

Removing newsletter and email subscription box

Views: 1,094

Results 1 to 4 of 4
13 May 2011, 3:49 PM
#1
mooncavecrystals avatar

mooncavecrystals

Zen Follower

Join Date:
Sep 2006
Posts:
455
Plugin Contributions:
0

Removing newsletter and email subscription box

I read another thread and did everything that was suggested, However, on the page where new customers create their accounts, at the very bottom is a box that says "Newsletter and Email" and directly under that it says html and text. How can I get rid of that? or at least remove the word "Newsletter"?

the reason being that even though the newsletter box is not viewable, folks automatically think that they are signed up for it anyway.

thanks!:clap:

13 May 2011, 4:37 PM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Removing newsletter and email subscription box

mooncavecrystals:

I read another thread and did everything that was suggested, However, on the page where new customers create their accounts, at the very bottom is a box that says "Newsletter and Email" and directly under that it says html and text. How can I get rid of that? or at least remove the word "Newsletter"?

the reason being that even though the newsletter box is not viewable, folks automatically think that they are signed up for it anyway.

thanks!:clap:

you can edit this information in includes/languages/YOUR_TEMPLATE/english.php (at around line 617)

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

14 May 2011, 6:03 PM
#3
mooncavecrystals avatar

mooncavecrystals

Zen Follower

Join Date:
Sep 2006
Posts:
455
Plugin Contributions:
0

Re: Removing newsletter and email subscription box

so do I just delete that line? or?

14 May 2011, 7:22 PM
#4
stevesh avatar

stevesh

Black Belt

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

Re: Removing newsletter and email subscription box

You can remove that whole section by editing includes/templates/template_default/templates/tpl_modules_create_account.php and remove this:

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

Then save it to your custom template /templates folder.

If you want to leave the email part, use clyde's suggestion and edit this line in english.php:

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

to read:

define('ENTRY_EMAIL_PREFERENCE','Email Details');

and this line:

define('ENTRY_NEWSLETTER', 'Subscribe to Our Newsletter.');

to:

define('ENTRY_NEWSLETTER', '');