Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Automatic addition to a newslist all new customer

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 12-02-2008, 07:18 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default 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} 
Reply With Quote
  #2  
Old 12-02-2008, 08:04 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-02-2008, 08:11 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default 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.
Reply With Quote
  #4  
Old 12-28-2009, 12:50 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default 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
__________________
4.6.1 Platinum


Reply With Quote
  #5  
Old 12-28-2009, 10:40 AM
 
Shiftlocked Shiftlocked is offline
 

Advanced Member
  
Join Date: Apr 2007
Posts: 72
 

Default 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?
__________________
Xcart Version: Patched 4.4.0 to 4.5.0
Mods Installed so far. Firetank Feed Manager - More soon - Looking for a designer to reinvent the website. Feel free to get in touch
Reply With Quote
  #6  
Old 12-31-2009, 05:38 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #7  
Old 01-02-2010, 01:26 PM
  Dan.roh's Avatar 
Dan.roh Dan.roh is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 397
 

Default 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.
__________________
Regards

Dan


Xcart version:
4.1.10 GOLD
Reply With Quote
  #8  
Old 01-02-2010, 01:52 PM
  gizmo's Avatar 
gizmo gizmo is offline
 

X-Adept
  
Join Date: Jan 2005
Location: Crawley : UK
Posts: 618
 

Default 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..
__________________
Thank You - Alan
Don't be like me, and keep saying "Nearly did it" go do it!!
Version: 4.4.4 Gold -
Reply With Quote
  #9  
Old 01-03-2010, 09:28 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:48 PM.

   

 
X-Cart forums © 2001-2020