EDIT: /catalog/view/theme/default/template/account/create.tpl
Change: (aprox line 138)
to:
and
change: (approx line 140)
to:
Change: (aprox line 138)
Code: Select all
<input type="radio" name="newsletter" value="1" />
Code: Select all
<input type="radio" name="newsletter" value="1" checked="checked" />
change: (approx line 140)
Code: Select all
<input type="radio" name="newsletter" value="0" checked="checked" />
Code: Select all
<input type="radio" name="newsletter" value="0" />
I don't know where you are based, but I suggest that you should check what your country's policy is regarding opt-in by default.
Thanks for providing solution.
I'm based in UK. Is it forbidden by law to leave newsletter opt in in "yes" by default? I thought that as long as opt out option is provided at the same time(when registering) then it doesn't matter which one is ticked by default as customer still has a clear chance to opt in or out as he wishes. Please tell me the source of this information.
I'm based in UK. Is it forbidden by law to leave newsletter opt in in "yes" by default? I thought that as long as opt out option is provided at the same time(when registering) then it doesn't matter which one is ticked by default as customer still has a clear chance to opt in or out as he wishes. Please tell me the source of this information.
Hi,
I'm running 1.5.X and the changes don't seem to have any effect. Can anyone tell me how I can change this code so that it will default to sign up 'yes' for the newsletter please.
(I am aware of the legals on this and it's OK in the UK as long as you give people a choice and unsubscribe option - we do)
What should I change at line 166 in: /catalog/view/theme/shoppica/template/account/create.tpl
And what should I change at line 179 in: /catalog/view/theme/shoppica/template/account/create.tpl
And finally I think I also need to changes in this file as well around line 290 in file: /catalog/controller/account/create.php
Additionally, I would like people who don't wish to sign up for an account to be able to subscribe for a newsletter. Does a module exist for this or does anyone know if its possible to do? I have the add subscribers to mailchimp module added and would like it to work with this as well please.
And finally - how do I see who has added themselves to the newsletter? A list of subscribers in the back end - can't seem to find any of them?
May thanks
Bob
Letterfest.com
I'm running 1.5.X and the changes don't seem to have any effect. Can anyone tell me how I can change this code so that it will default to sign up 'yes' for the newsletter please.
(I am aware of the legals on this and it's OK in the UK as long as you give people a choice and unsubscribe option - we do)
What should I change at line 166 in: /catalog/view/theme/shoppica/template/account/create.tpl
Code: Select all
<?php if ($newsletter == 1) { ?>
<label class="s_radio"><input type="radio" name="newsletter" value="1" checked="checked" /> <?php echo $text_yes; ?></label>
<label class="s_radio"><input type="radio" name="newsletter" value="0" /> <?php echo $text_no; ?></label>
<?php } else { ?>
<label class="s_radio"><input type="radio" name="newsletter" value="1" /> <?php echo $text_yes; ?></label>
<label class="s_radio"><input type="radio" name="newsletter" value="0" checked="checked" /> <?php echo $text_no; ?></label>
<?php } ?>
Code: Select all
<?php if ($text_agree) { ?>
<?php if ($agree) { ?>
<label class="s_checkbox left"><input type="checkbox" name="agree" value="1" checked="checked" /> <?php echo $this->document->text_agree_account; ?></label>
<?php } else { ?>
<label class="s_checkbox left"><input type="checkbox" name="agree" value="1" /> <?php echo $this->document->text_agree_account; ?></label>
<?php } ?>
<a class="s_button_1 s_main_color_bgr" onclick="$('#create').submit();"><span class="s_text"><?php echo $button_continue; ?></span></a>
<?php } else { ?>
<a class="s_button_1 s_main_color_bgr" onclick="$('#create').submit();"><span class="s_text"><?php echo $button_continue; ?></span></a>
<?php } ?>
Code: Select all
if (isset($this->request->post['newsletter'])) {
$this->data['newsletter'] = $this->request->post['newsletter'];
} else {
$this->data['newsletter'] = '';
}
And finally - how do I see who has added themselves to the newsletter? A list of subscribers in the back end - can't seem to find any of them?
May thanks
Bob
Letterfest.com
To make Newsletter sign up 'yes' by default, you can change at line 133 in: /catalog/view/theme/default/template/account/register.tpl
change to
Code: Select all
<td><?php if ($newsletter == 1) { ?>
Code: Select all
<td><?php if ($newsletter == 0) { ?>
thank you supaflex!
here's the vQmod in case anybody needs it...
here's the vQmod in case anybody needs it...
I had the same need and I developed a quick free VQMOD to work with my Sellegance-derived custom theme and also for the default theme OC 1.5.3.1
http://www.opencart.com/index.php?route ... on_id=7681
R
http://www.opencart.com/index.php?route ... on_id=7681
R
I'm having difficulty with this. I'm working with OC 1.5.4.1. I tried changing the 1 to checked and the 0 to unchecked. I've tried adding the extension but when I go to create a new account it still has newletter as no? Any ideas for me? Obviously not a programmer - sorry.
Who is online
Users browsing this forum: Semrush [Bot] and 18 guests