osCmax v2.5 User Manual
Results 1 to 5 of 5

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

      
  1. #1
    New Member
    Join Date
    Apr 2004
    Posts
    20
    Rep Power
    0


    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?

  2. #2
    Member
    Join Date
    Apr 2005
    Posts
    31
    Rep Power
    0


    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>

  3. #3
    osCMax Testing Team
    Join Date
    Nov 2006
    Location
    Southern New Jersey
    Posts
    35
    Rep Power
    0


    Default Re: Set subscribe newsletter as default

    Thanks it worked

  4. #4
    New Member Rod1mu5's Avatar
    Join Date
    Mar 2007
    Location
    Pensacola, FL
    Posts
    12
    Rep Power
    0


    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/

  5. #5
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


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

Similar Threads

  1. Remove newsletter
    By code_renegade in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 02-04-2006, 10:00 PM
  2. Welcome Newsletter
    By bobbiejames in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 06-14-2004, 07:41 AM
  3. Newsletter / Emails
    By peterb in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 07-01-2003, 09:54 AM
  4. HTML Newsletter
    By adrenalinez in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 01-29-2003, 09:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •