X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Automatic addition to a newslist all new customer (https://forum.x-cart.com/showthread.php?t=44005)

Yurij 12-02-2008 07:18 AM

Automatic addition to a newslist all new customer
 
Automatic addition to a newslist all new customer (hide the check box on signup).

Replace your "skin1/modules/News_Management/register_newslists.tpl" with this code:

PHP Code:

{if $login ne ""}
{if 
$active_modules.News_Management and $newslists}
{if 
$hide_header eq ""}
<
tr>
<
td height="20" colspan="3"><b>{$lng.lbl_newsletter}</b><hr size="1" noshade="noshade" /></td>
</
tr>
{/if}

<
tr>
<
td colspan="3">{$lng.lbl_newsletter_signup_text}</td>
</
tr>

<
tr>
<
td colspan="2">&nbsp;</td>
<
td>
<
table border="0">

{
section name=idx loop=$newslists}
{
assign var="listid" value=$newslists[idx].listid}
<
tr>
<
td><input type="checkbox" name="subscription[{$listid}]" {if $subscription[$listidne ""}checked="checked"{/if} /></td>
<
td>{$newslists[idx].name}</td>
</
tr>
<
tr>
<
td>&nbsp;</td>
<
td><i>{$newslists[idx].descr}</i></td>
</
tr>
{/
section}

</
table>
</
td>
</
tr>

{/if}

{else}
<
tr>
<
td colspan="3">
<
div style="display:none;">
    {
section name=idx loop=$newslists}
        {
assign var="listid" value=$newslists[idx].listid}
        <
input type="checkbox"  name="subscription[{$listid}]" checked="checked" />
    {/
section}
</
div>
</
td>
</
tr>
{/if} 


balinor 12-02-2008 08:04 AM

Re: Automatic addition to a newslist all new customer
 
FYI, this is considered unethical in many instances and will cause some irate customers (myself included). Newsletter sign-up should be 'opt in' and not automatic.

Yurij 12-02-2008 08:11 AM

Re: Automatic addition to a newslist all new customer
 
Quote:

Originally Posted by balinor
FYI, this is considered unethical in many instances and will cause some irate customers (myself included). Newsletter sign-up should be 'opt in' and not automatic.


Yes, I know. But anyone that may be needed in some cases.

Learner 12-28-2009 12:50 AM

Re: Automatic addition to a newslist all new customer
 
Quote:

Originally Posted by Yurij
Automatic addition to a newslist all new customer (hide the check box on signup).

Replace your "skin1/modules/News_Management/register_newslists.tpl" with this code:

PHP Code:

{if $login ne ""}
{if 
$active_modules.News_Management and $newslists}
{if 
$hide_header eq ""}
<
tr>
<
td height="20" colspan="3"><b>{$lng.lbl_newsletter}</b><hr size="1" noshade="noshade" /></td>
</
tr>
{/if}

<
tr>
<
td colspan="3">{$lng.lbl_newsletter_signup_text}</td>
</
tr>

<
tr>
<
td colspan="2">&nbsp;</td>
<
td>
<
table border="0">

{
section name=idx loop=$newslists}
{
assign var="listid" value=$newslists[idx].listid}
<
tr>
<
td><input type="checkbox" name="subscription[{$listid}]" {if $subscription[$listidne ""}checked="checked"{/if} /></td>
<
td>{$newslists[idx].name}</td>
</
tr>
<
tr>
<
td>&nbsp;</td>
<
td><i>{$newslists[idx].descr}</i></td>
</
tr>
{/
section}

</
table>
</
td>
</
tr>

{/if}

{else}
<
tr>
<
td colspan="3">
<
div style="display:none;">
    {
section name=idx loop=$newslists}
        {
assign var="listid" value=$newslists[idx].listid}
        <
input type="checkbox"  name="subscription[{$listid}]" checked="checked" />
    {/
section}
</
div>
</
td>
</
tr>
{/if} 



Thanks for your codes. Now I have a third party newsletter application named phplist in my same domain now can I able to enter the user email id from x-cart to phplist's email list automatically?

If possible how?

Thanks to all

Shiftlocked 12-28-2009 10:40 AM

Re: Automatic addition to a newslist all new customer
 
Also I believe in some countries all newsletters should be opt in and not out. I know that in the UK that this is the case, not sure about other countries?

JWait 12-31-2009 05:38 AM

Re: Automatic addition to a newslist all new customer
 
Quote:

Originally Posted by Learner
Thanks for your codes. Now I have a third party newsletter application named phplist in my same domain now can I able to enter the user email id from x-cart to phplist's email list automatically?

If possible how?

Thanks to all


Having a newsletter that is not opt-in is considered spam by most ISPs and is a sure way to get all of your email, including order notifications, banned. If your "phplist" does not include an opt-out feature it is definitely spam, and will be treated as such by most if not all reputable ISPs.

Dan.roh 01-02-2010 01:26 PM

Re: Automatic addition to a newslist all new customer
 
Regardless of all the legal stuff guys, its bloody annoying receiving mail that you did not subscribe for! Xcart should ban things like this from their forum.

No hard feelings to the poster, but don't you think you are encouraging spammers with your code?


Quote:

Originally Posted by JWait
Having a newsletter that is not opt-in is considered spam by most ISPs and is a sure way to get all of your email, including order notifications, banned. If your "phplist" does not include an opt-out feature it is definitely spam, and will be treated as such by most if not all reputable ISPs.


gizmo 01-02-2010 01:52 PM

Re: Automatic addition to a newslist all new customer
 
Quote:

Originally Posted by Shiftlocked
Also I believe in some countries all newsletters should be opt in and not out. I know that in the UK that this is the case, not sure about other countries?



Most do it in a cunning way thou, such as the mailing list for example, when you say sign up, is checked by default on many sites, I think that should also stop, as most will sort of hide that..

JWait 01-03-2010 09:28 AM

Re: Automatic addition to a newslist all new customer
 
Quote:

Originally Posted by gizmo
Most do it in a cunning way thou, such as the mailing list for example, when you say sign up, is checked by default on many sites, I think that should also stop, as most will sort of hide that..


Its up to the (x-cart) user. If they really want to lose customers all you can do is warn against it. If they refuse to listen, fortunately they aren't around very long.


All times are GMT -8. The time now is 01:12 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.