When creating new account, I want the checkbox for "subscribe newsletter" to be checked as default. Can anybody tell me where I can do this?
This is a discussion on Set subscribe newsletter as default within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; When creating new account, I want the checkbox for "subscribe newsletter" to be checked as default. Can anybody tell me ...
When creating new account, I want the checkbox for "subscribe newsletter" to be checked as default. Can anybody tell me where I can do this?
Super late but thought I would answer as I have just searched for it and found the solution...
Go to create_account.php in your template folder and find the following code..
<td class="main"><?php echo tep_draw_checkbox_field('newsletter', '1') . '&nbsp;' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?></td>
and replace with
<td class="main"><?php echo tep_draw_checkbox_field('newsletter', '1', 'checked') . '&nbsp;' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?></td>
Thanks it worked
Hey thanks...this worked right off no questions...just had to go find that folder where the create_account.php was hiding at... I will post it for all others who may use this as well
/public_html/catalog/templates/fallback/content/
That path is for osCMax, not osCommerce. This thread is dealing with osCommerce, not osCMax...
So you path is not correct for this thread, nor the filename.
The path and filename in osCMax is:
/catalog/templates/fallback/content/create_account.tpl.php
The path and filename in osCommerce is:
/catalog/create_account.php
Please note what forums you are posting to, in this case, the standard osCOmmerce discussion, not osCMax discussion.
Michael Sasek
osCMax Developer
osCmax Installation Service - Have our professionals install osCmax on your server - same day service!
osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5
Stay Up To Date with everything osCMax:
Free osCmax Newsletters - Security notices, New Releases, osCMax News
osCmax on Twitter - Up to the minute info as it happens. Know it first.
osCmax Documentation
Bookmarks