osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Set subscribe newsletter as default

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


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 11-29-2005, 02:47 PM
New Member
 
Join Date: Apr 2004
Posts: 20
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Lord
Default Set subscribe newsletter as default

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to Lord For This Useful Post:
Bassmaster (05-09-2007)
  #2  
Old 08-29-2006, 02:06 AM
Member
 
Join Date: Apr 2005
Posts: 31
Thanks: 6
Thanked 3 Times in 1 Post
Rep Power: 0
daffodil
Default

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') . ' ' . (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') . ' ' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?></td>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 3 Users Say Thank You to daffodil For This Useful Post:
Bassmaster (05-09-2007), Rod1mu5 (04-20-2008), typhus (03-23-2008)
  #3  
Old 05-09-2007, 07:19 AM
New Member
 
Join Date: Nov 2006
Location: Southern New Jersey
Posts: 29
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 0
Bassmaster
Default Re: Set subscribe newsletter as default

Thanks it worked
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 04-20-2008, 08:00 AM
Rod1mu5's Avatar
New Member
 
Join Date: Mar 2007
Location: Pensacola, FL
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0
Rod1mu5 is on a distinguished road
Default Re: Set subscribe newsletter as default

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/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 04-20-2008, 09:11 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,191
Thanks: 66
Thanked 290 Times in 276 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Set subscribe newsletter as default

Quote:
Originally Posted by Rod1mu5 View Post
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 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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 11:07 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax