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
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.
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" />
Instead of
doCode:<?php echo zen_draw_checkbox_field('newsletter', '1', $newsletter, 'id="newsletter-checkbox"') ....
See how $newsletter is the third parameter (counting from 1) to zen_draw_checkbox_field.Code:<?php echo zen_draw_checkbox_field('newsletter', '1', true, 'id="newsletter-checkbox"') ....
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.
Alternatively, in your admin panel:
configuration->customer details->Show Newsletter Checkbox
HTH,
Audra
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.
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