Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

setting the newsletter check box to check as default


davej

Recommended Posts

Hi every one

 

I would like the checkbox for the newsletter in the sign up page to be set to checked as a default, which it currently is not. Any one know how to do this

 

thanx dave

Link to comment
Share on other sites

In catalog/create_account.php find the following piece of code

 

tep_draw_checkbox_field('newsletter', '1')

 

and change to

 

tep_draw_checkbox_field('newsletter', '1', $checked = true)

 

Try it but back up first!

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Link to comment
Share on other sites

In create_account.php change:

 

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

 

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...