tsvenkat Posted December 28, 2004 Posted December 28, 2004 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
digitalhuman Posted December 28, 2004 Posted December 28, 2004 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 <{POST_SNAPBACK}> Change the $checked = false to true in the /includes/function/html_output.php file. Somewhere between line 20 - 21.
tsvenkat Posted December 28, 2004 Author Posted December 28, 2004 Making this change as you specified..will it NOT make all the checkboex TICKED for all pages ? plz advice
digitalhuman Posted December 28, 2004 Posted December 28, 2004 Making this change as you specified..will it NOT make all the checkboex TICKED for all pages ? plz advice <{POST_SNAPBACK}> 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.
♥Vger Posted December 28, 2004 Posted December 28, 2004 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 <{POST_SNAPBACK}>
tsvenkat Posted December 28, 2004 Author Posted December 28, 2004 So, is there anyotehr option to achieve this ?
desiredin Posted January 4, 2005 Posted January 4, 2005 So, is there anyotehr option to achieve this ? <{POST_SNAPBACK}> Have you found a solution to your problem? I'm looking to have this as well.
♥Vger Posted January 4, 2005 Posted January 4, 2005 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.