Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Newsletter TICKED by default


tsvenkat

Recommended Posts

Posted

Hi

 

In the CUSTOMER Registration form, How to have the CHECKBOX TICKED by default for the NEWSLETTER Subscription.

 

is there anything to do with the following lines ?

 

<td class="main"><?php echo ENTRY_NEWSLETTER; ?></td>

<td class="main"><?php echo tep_draw_checkbox_field('newsletter', '1') . ' ' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?>

 

Rgds

 

venkat

Posted
Hi

 

In the CUSTOMER Registration form,? How to have the CHECKBOX TICKED by default for the NEWSLETTER Subscription.

 

is there anything to do with the following lines ?

 

? ? ? ? ? ? ? ? <td class="main"><?php echo ENTRY_NEWSLETTER; ?></td>

? ? ? ? ? ? ? ? <td class="main"><?php echo tep_draw_checkbox_field('newsletter', '1') . ' ' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?>

 

Rgds

 

venkat

 

Change the $checked = false to true in the /includes/function/html_output.php file. Somewhere between line 20 - 21.

Posted

Making this change as you specified..will it NOT make all the checkboex TICKED for all pages ?

 

plz advice

Posted
Making this change as you specified..will it NOT make all the checkboex TICKED for all pages ?

 

plz advice

 

I don't know. I did not programmed OsCommerce........ so please, someone of the staff can you answer :) ?

 

Else, just try... Otherwise you have to change the

 

<td class="main"><?php echo tep_draw_checkbox_field('newsletter', '1') . ' ' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?>

 

to:

 

<td class="main"><?php echo "<input type=\"checkbox\" name=\"newsletter\" value=\"ON\"> "; ?></td>

 

 

I think this is the correct line..... Im not sure what the span thing is, but to my understanding its nothing more then a input check.

Posted

Yes, making that particular change would pre-tick all boxes, including the 'delete from basket' boxes in the shopping cart.

 

Vger

Making this change as you specified..will it NOT make all the checkboex TICKED for all pages ?

 

plz advice

Posted

In the root level create_account.php file, change this:

 

<td class="main"><?php echo tep_draw_checkbox_field('newsletter', '1') . ' ' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?></td>

 

to this:

 

<td class="main"><?php echo tep_draw_checkbox_field('newsletter', '1', 'CHECKED') . ' ' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?></td>

 

Vger

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...