| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
News letter box pre-ticked | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi i have seen some sites that have the subscribe to a newsletter box pre ticked, does anybody know how to do this in x-cart.
Cheers Tony
__________________
4.1.11 gold x-special offers CDSEO Pro |
|||||||
#2
|
|||||||||
|
|||||||||
![]() skin1/modules/News_Management/register_newslists.tpl
Check this file .
__________________
MercuryMinds Technologies Development Team, Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com X-Cart Mailchimp Ecommerce 360 Plugin/integration module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) Smasher, a smart search engine for x-cart store (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) One Page Checkout (OPC) - X-Cart module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) |
|||||||||
#3
|
|||||||
|
|||||||
![]() Thanks for that Vetrivel, i have added the checked="checked" in the code below after type="checkbox", this has worked but i am unsure as what to do with the rest of the code on the same line, do you have any sugestions.
Cheers Tony <td><input type="checkbox" checked="checked" name="subscription[{$listid}]" {if $subscription[$listid] ne ""}checked="checked"{/if} /></td> <td>{$newslists[idx].name}</td>
__________________
4.1.11 gold x-special offers CDSEO Pro |
|||||||
#4
|
|||||||||
|
|||||||||
![]() you are asking about this condition ({if $subscription[$listid] ne ""}checked="checked"{/if}) right?
This is used to display the selected newslist. EX:if you selected the one out of 5 newslist while registering then when you came back to modify profile .You can see the selected newslist.
__________________
MercuryMinds Technologies Development Team, Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com X-Cart Mailchimp Ecommerce 360 Plugin/integration module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) Smasher, a smart search engine for x-cart store (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) One Page Checkout (OPC) - X-Cart module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) |
|||||||||
#5
|
|||||||
|
|||||||
![]() Yes this is the code i am unsure as what to do with, do i leave as is and the newsletter will work fine even though i have added checked="checked", the admin side will see the customer as requesting subscription to the newsletter, is this correct.
__________________
4.1.11 gold x-special offers CDSEO Pro |
|||||||
#6
|
|||||||||
|
|||||||||
![]() See.What you are doing here is -> Making the customer to select all the newslist as default bvy checking the check box.But while registration customer can uncheck this option.
After register the default xcart will show the checked newslist here. Leaving that code as it is will do nothing Because you override this by adding checked ="checked". What is intention ?
__________________
MercuryMinds Technologies Development Team, Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com X-Cart Mailchimp Ecommerce 360 Plugin/integration module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) Smasher, a smart search engine for x-cart store (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) One Page Checkout (OPC) - X-Cart module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) |
|||||||||
#7
|
|||||||
|
|||||||
![]() My intention is for the check boxes to be ticked by default, for the back end to show the customer as subscribed to the newsletter unless the customer wishes not to be subscribed for the newsletter then they can uncheck the check box.
__________________
4.1.11 gold x-special offers CDSEO Pro |
|||||||
#8
|
|||||||
|
|||||||
![]() Quote:
Actually, you're really hurting the user experience here. If you just want people who are registering to have the box preticked, but members to act correctly (so they can tell what they are subscribed to), you should do this: {if not $login} checked="checked"{/if} That way, during the registration process they are ticked, but when visiting their profile, only what they are really subscribed to is ticked.
__________________
Mike | X-Cart 4.2.1 | Ubuntu 64 Server MurraySoft :: The Application Store╝ for DotNetNuke, SharePoint, Web Design Templates, X-Cart and more! http://www.MurraySoft.com/ |
|||||||
#9
|
|||||||
|
|||||||
![]() You should alter the "<xart_dir>/skin1/modules/News_Management/register_newslists.tpl" template.
Find this code: <input type="checkbox" name="subscription[{$listid}]" {if $subscription[$listid] ne ""}checked="checked"{/if} /> And replace it with this: <input type="checkbox" name="subscription[{$listid}]" {if $subscription[$listid] ne "" or $login eq ""}checked="checked"{/if} />
__________________
Max Hodges Creative Director White Rabbit www.whiterabbitpress.com www.tokyorealtime.com www.whiterabbitexpress.com |
|||||||
|
#10
|
|||||||
|
|||||||
![]() Quote:
I have tried this in 4.3 with no luck. Does anyone know if there is an alternative method for 4.3? I would like to make sure that all newsletters are "checked" by default when a customer registers via checkout or normally. Thanks in advance.
__________________
Best Wishes, James 4.5.2 Gold (work in progress) |
|||||||
|
|||
X-Cart forums © 2001-2020
|