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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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? |
| The Following User Says Thank You to Lord For This Useful Post: | ||
Bassmaster (05-09-2007) | ||
|
#2
| |||
| |||
| 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> |
| The Following 3 Users Say Thank You to daffodil For This Useful Post: | ||
|
#3
| |||
| |||
| Thanks it worked |
|
#4
| ||||
| ||||
| 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/ |
|
#5
| ||||
| ||||
| Quote:
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 Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Remove newsletter | code_renegade | osCMax v2 Customization/Mods | 0 | 02-04-2006 11:00 PM |
| Welcome Newsletter | bobbiejames | osCommerce 2.2 Modification Help | 0 | 06-14-2004 07:41 AM |
| Newsletter / Emails | peterb | osCommerce 2.2 Modification Help | 0 | 07-01-2003 09:54 AM |
| HTML Newsletter | adrenalinez | osCommerce 2.2 Modification Help | 0 | 01-29-2003 10:16 PM |