noveltygifts Posted March 22, 2005 Share Posted March 22, 2005 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 More sharing options...
Guest Posted March 22, 2005 Share Posted March 22, 2005 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. <{POST_SNAPBACK}> 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 More sharing options...
oldworldcharms Posted March 22, 2005 Share Posted March 22, 2005 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 More sharing options...
noveltygifts Posted March 22, 2005 Author Share Posted March 22, 2005 wow talk about fast replies. thanks alot guys, it worked like a charm! Link to comment Share on other sites More sharing options...
oldworldcharms Posted March 22, 2005 Share Posted March 22, 2005 :thumbsup: Link to comment Share on other sites More sharing options...
Guest Posted March 22, 2005 Share Posted March 22, 2005 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.