Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Login Page: Remove HTML & TEXT-Only Radio Buttons

Login Page: Remove HTML & TEXT-Only Radio Buttons

Locked

Views: 4,276

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
17 May 2007, 3:43 PM
#1
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Login Page: Remove HTML & TEXT-Only Radio Buttons

Concerning the removal of the HTML & TEXT-Only Radio Buttons on the login page: Via the /includes/languages/custom_template/english.php I can remove the actual text but how can I make the radio buttons go away? I just want to be left with:

Newsletter Subscription
Subscribe to Our Newsletter
With the checkbox.

Thanks for any pointers.

29 May 2009, 6:08 AM
#2
nisdats avatar

nisdats

New Zenner

Join Date:
Apr 2009
Location:
Houston
Posts:
41
Plugin Contributions:
0

Re: Login Page: Remove HTML & TEXT-Only Radio Buttons

I know its been 2 years but has anybody discovered how to do this?

I've been trying to figure it out for the last hour or so and Im lost :frusty:

nisdats

29 May 2009, 6:39 AM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Login Page: Remove HTML & TEXT-Only Radio Buttons

FTP the following file to your hard drive:

includes/templates/template_default/tpl_modules_create_account.php

Open it for editing in a good PLAIN TEXT editor such as crimson editor.

Scroll down till you find the following:

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

COMMENT OUT (do not delete it), the section shown below:

<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 } ?>
<!-- EDIT BEGIN this de-activates the select html option button - uncomment to re-activate
<?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>'; ?>
 EDIT END-->
<br class="clearBoth" />
</fieldset>

SAVE the file and send it to:

includes/templates/YOUR-TEMPLATE/templates/

23 Jun 2009, 9:27 AM
#4
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Login Page: Remove HTML & TEXT-Only Radio Buttons

Along similar lines. I would like to have the newsletter subscribe radio buttons on my checkout confirmation page(s).

FYI - my checkout routes are:

Cheque payment: cart / bypass login page / billing information / checkout confirmation page (fec stacked)

Paypal express: cart / paypal / checkout confirmation page (.../index.php?main_page=checkout)

I realise this will probably require some php editing and I'm happy to attempt this. Any advice would be appreciated.

Many thanks

Simon