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)
-   -   Advanced Subscribe/Unsubscribe Mod (https://forum.x-cart.com/showthread.php?t=5330)

BoomBoomBap 11-24-2003 07:41 PM

Advanced Subscribe/Unsubscribe Mod
 
I implemented this on my older site and now that Im building a new site I thought it would be nice to share this mod. This mod tested on 3.3.7 and 3.4.9

You can see it in action here: http://www.boomboombap.com/shop/customer/help.php?section=optout

new file help/optout.tpl

Code:

{* $Id: optout.tpl,v .5 2003/24/11 06:55:20 BoomBoomBap Exp $ *}
<table cellpadding=3><tr><td>Newsletter Subscription Preference
From this page you may easily subscribe to or unsubscribe from the (YOUR COMPANY NAME) Newsletter.

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

{capture name=dialog}
<table cellpadding=3><tr><td>


 
Join the mailing list to receive advance notice of new additions, sales, specials, discounts and more. Unsubscribe anytime by returning to this page.


 
<form action="../mail/subscribe.php" method=get name=subscribeform2>
<input type="text" name="email" size="10">

 
<input type="submit" value="Subscribe" onClick="javascript:document.subscribeform2.submit()">
<input type=hidden name=redirect value="{$redirect}">
</form>
</td></tr></table>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_subscribe content=$smarty.capture.dialog extra="width=100%"}
{capture name=dialog}
<table cellpadding=3><tr><td>


 
You may unsubscribe from the (YOUR COMPANY NAME) Newsletter by entering your mailing address below. All unsubscribe requests are immediately and automatically processed by the system. You can resubscribe to the newsletter by returning to this page.


 
<form action="../mail/unsubscribe.php" method=get name=unsubscribeform>
<input type="text" name="email" size="10">

 
<input type="submit" value="Unsubscribe" onClick="javascript:document.unsubscribeform.submit()">
<input type=hidden name=redirect value="{$redirect}">
</form>
</td></tr></table>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_unsubscribe content=$smarty.capture.dialog extra="width=100%"}


edit file help/index.tpl add:
Code:

{elseif $section eq "optout"}
{include file="help/optout.tpl"}


edit file help/general.tpl add anywhere:

AND/OR edit file /news.tpl add:

AND/OR edit file /help.tpl add:

If you want to take it further you can take all the text and store it in the database but for my own purposes it's not necessary.

Enjoy!

B00MER 11-24-2003 09:47 PM

=D> One thing X-cart defiantly needs, a easy way to unsubscribe from newsletter mailling lists. Speaking of which inserting {%%customer_name%%} or something in the newseltter sending would be quite handy ;)

So the customer would get something like:

Dear John Doe,

blah...

BoomBoomBap 11-24-2003 09:53 PM

Yeah... personalized email messages always makes a difference.

As it is, the newsletter implementation for Xcart leaves a lot to be desired.

B00MER 11-24-2003 09:57 PM

Yea like,

б╥ Send emails in all formats: HTML, Plain, Multi-part
б╥ Link tracking, read statistics (if HTML)
б╥ Unsubscription link, account update link, etc
б╥ Intervals for Sending (to keep servers from overloading on large lists)

Just my 2cents.

carlisleglass 11-25-2003 03:55 AM

you could install an external mailing list manager instead of the default x-cart one !

groovico 11-25-2003 04:51 AM

We're releasing x-cart add on modules that will do all of that plus more.

Multipart HTML & plain text emails with personalisation available if sending to your customer accounts. Timed delays so your server isn't hammered sending out larger lists or to get past host limits. Designed for both targetted and general newsletter use.

Keep your eyes peeled, Marketing Manager V2.0 for x-cart gold and pro is just around the corner soon too and all add on packs will be available as stand alone add on's so you won't need even need marketing manager standard.

adpboss 11-29-2003 09:39 AM

Is MM 2.0 a free upgrade?

groovico 12-19-2003 06:36 PM

Quote:

Originally Posted by adpboss
Is MM 2.0 a free upgrade?


Yup free upgrade for all the add on's you're currently licensed for.


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

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