Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Newsletter checkbox


noveltygifts

Recommended Posts

Is it possible for the newsletter checkmark to be on when someone creates a new account. Right now the default is for it to be off. I want for whenever someone creates a new account for the newsletter checkbox default to be on. If they don't want the suscribe to he newsletter, then they have to uncheck it.

Link to comment
Share on other sites

Is it possible for the newsletter checkmark to be on when someone creates a new account. Right now the default is for it to be off. I want for whenever someone creates a new account for the newsletter checkbox default to be on. If they don't want the suscribe to he newsletter, then they have to uncheck it.

In catalog/create_account.php change

 

tep_draw_checkbox_field('newsletter', '1')

to

tep_draw_checkbox_field('newsletter', '1', true)

:thumbsup:

Link to comment
Share on other sites

In create_account.php change

$checked = false

to

$checked = true

 

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

Link to comment
Share on other sites

Most people might find it strange but this code will also work!

 

tep_draw_checkbox_field('newsletter', '1', 'noveltygifts')

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...