Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: newsletter opt out instead of opt in

    Add ./includes/templates/template_default/templates/tpl_modules_create_account.php to your template, and edit line 177 (which does the zen_draw_checkbox). Change the third parameter to true (from $newsletter).

    Scott
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #2
    Join Date
    Jul 2006
    Location
    Rotherham, UK
    Posts
    143
    Plugin Contributions
    0

    Default Re: newsletter opt out instead of opt in

    Hiya Scott, and thank you for the reply ..
    I have copied over that file, but i cannot see which part to change
    Below is lines 177 and 178 .. please can you just tell me where the 3rd parameter is
    Many Thanks
    Erica xx
    Code:
    <?php echo zen_draw_checkbox_field('newsletter', '1', $newsletter, 'id="newsletter-checkbox"') . '<label class="checkboxLabel" for="newsletter-checkbox">' . ENTRY_NEWSLETTER . '</label>' . (zen_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="alert">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?>
    <br class="clearBoth" />
    Quote Originally Posted by swguy View Post
    Add ./includes/templates/template_default/templates/tpl_modules_create_account.php to your template, and edit line 177 (which does the zen_draw_checkbox). Change the third parameter to true (from $newsletter).

    Scott

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: newsletter opt out instead of opt in

    Instead of
    Code:
    <?php echo zen_draw_checkbox_field('newsletter', '1', $newsletter, 'id="newsletter-checkbox"') ....
    do

    Code:
    <?php echo zen_draw_checkbox_field('newsletter', '1', true, 'id="newsletter-checkbox"') ....
    See how $newsletter is the third parameter (counting from 1) to zen_draw_checkbox_field.
    This is what you change to the value true.

    Good luck,
    Scott
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    Jul 2006
    Location
    Rotherham, UK
    Posts
    143
    Plugin Contributions
    0

    Default Re: newsletter opt out instead of opt in

    got it .. thank you so much :) .. what i was trying to do was add true near to that so it looked like $newsletter 'true' .. can you tell i am not a coder lol
    Anyway, it worked a treat, thank you again
    Erica xx

    Quote Originally Posted by swguy View Post
    Instead of
    Code:
    <?php echo zen_draw_checkbox_field('newsletter', '1', $newsletter, 'id="newsletter-checkbox"') ....
    do

    Code:
    <?php echo zen_draw_checkbox_field('newsletter', '1', true, 'id="newsletter-checkbox"') ....
    See how $newsletter is the third parameter (counting from 1) to zen_draw_checkbox_field.
    This is what you change to the value true.

    Good luck,
    Scott

  5. #5
    Join Date
    Oct 2005
    Location
    Eastern US
    Posts
    488
    Plugin Contributions
    0

    Default Re: newsletter opt out instead of opt in

    Alternatively, in your admin panel:

    configuration->customer details->Show Newsletter Checkbox

    HTH,
    Audra

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: newsletter opt out instead of opt in

    This just controls whether it's shown or not.

    Scott
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    Feb 2006
    Posts
    12
    Plugin Contributions
    0

    Default Re: newsletter opt out instead of opt in

    Actually it's possible to change it from the admin panel like Audra mentioned. There are 3 checkboxes:

    Show Newsletter Checkbox
    0= off
    1= Display Unchecked
    2= Display Checked

    Number 2 works perfectly fine.

    Trond

 

 

Similar Threads

  1. v139h Double Opt In Newsletter Email
    By IndyNeal in forum General Questions
    Replies: 3
    Last Post: 23 Feb 2012, 12:40 AM
  2. Opt Out Cookies?
    By PudzPud in forum General Questions
    Replies: 2
    Last Post: 26 Jun 2011, 09:00 PM
  3. Looking for: Email Newsletter opt-in/out log
    By jasmel in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 30 Nov 2009, 07:19 PM
  4. automatic newsletter subscribe with opt out?
    By iantopanto in forum General Questions
    Replies: 1
    Last Post: 23 Jun 2008, 10:37 PM

Posting Permissions

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