Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jul 2006
    Location
    Rotherham, UK
    Posts
    143
    Plugin Contributions
    0

    Default newsletter opt out instead of opt in

    hiya

    i dont know if this is in the right place, apologies in advance if its wrong.

    At the moment when customers/potential customers create accounts, they have to physically opt into getting the newsletter .. is there any way to change that so that its already ticked and they have to opt out instead .. the reason i ask is that a few account holders are asking why they havnt got newsletters and its because they missed that part when signing up .. they assumed that it was standard to get the newsletter.

    Many thanks in advance
    Erica xx

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,623
    Plugin Contributions
    123

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

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

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,623
    Plugin Contributions
    123

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

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

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

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,623
    Plugin Contributions
    123

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

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

  9. #9
    Join Date
    Mar 2006
    Location
    St. Louis area
    Posts
    208
    Plugin Contributions
    0

    Default Re: newsletter opt out instead of opt in

    Erica,

    Yes it is possible to do what you want but if you are in the United States, you could be in violation of anti-spam laws in several states.

  10. #10
    Join Date
    Apr 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: newsletter opt out instead of opt in

    Quote Originally Posted by scottb View Post
    Erica,

    Yes it is possible to do what you want but if you are in the United States, you could be in violation of anti-spam laws in several states.

    Is there a list of states somewhere that outlines where all this applies? I've had difficulty finding out if this applies in Illinois.

 

 
Page 1 of 2 12 LastLast

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

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR