Page 1 of 1

Unsubscribe for newsletter

Posted: Wed Feb 04, 2009 4:19 pm
by butterscotch
I am planning to send a newsletter out using ablecommerce - terrible at programming -wondering if someone can help me with the code i need to add at the bottom of the newsletter for someone to unsubscribe to the newsletter. thanks,

Re: Unsubscribe for newsletter

Posted: Fri Feb 06, 2009 4:07 am
by mazhar
Just put a link to the MyAccount page at the bottom. Customer willing to unsubscribe the news letter can then update their communication preferences in that page.

Code: Select all

<a href="${store.StoreUrl}Members/MyAccount.aspx">Unsubscribe</a>

Re: Unsubscribe for newsletter

Posted: Tue Feb 10, 2009 1:36 pm
by butterscotch
thank you so much!

Re: Unsubscribe for newsletter

Posted: Tue Feb 10, 2009 2:22 pm
by Robbie@FireFold
I so needed this!

Adding it into our template.

Thanks guys!

Re: Unsubscribe for newsletter

Posted: Wed Oct 28, 2009 12:44 pm
by rpb3
Found this in another thread, I personally like this solution better.

Code: Select all

Nobody likes unwanted email.&nbsp; If you would like to be instantly removed from our mailing list, just click <a href="${store.StoreUrl}Subscription.aspx?action=remove&list=${list.EmailListId}&email=${customer.email}">here</a> and we'll process your request immediately.

Re: Unsubscribe for newsletter

Posted: Wed Sep 01, 2010 11:30 am
by foodsleuth
Hi,
I tried the last solution suggested for the opt-out link but the subscription page showed this error message:
"The subscription request was not understood or the provided parameters are incorrect. " the url created was this:
"http://store.samplestore.com/Subscripti ... @email.com"

Re: Unsubscribe for newsletter

Posted: Wed Sep 01, 2010 11:52 pm
by mazhar
Try following

Code: Select all

<a href="${store.StoreUrl}Subscription.aspx?action=remove&list=${list.EmailListId}&email=${customer.Email}">here</a>

Re: Unsubscribe for newsletter

Posted: Thu Sep 02, 2010 8:36 am
by foodsleuth
Hi,
I gave that a try but I still see the same error when I click on the link and it created the same url:
The subscription request was not understood or the provided parameters are incorrect. " the url created was this:
"http://store.samplestore.com/Subscripti ... @email.com"

Re: Unsubscribe for newsletter

Posted: Fri Sep 03, 2010 1:07 am
by mazhar
Can you provide the name of Email template you are using in this case ?

Re: Unsubscribe for newsletter

Posted: Fri Sep 03, 2010 1:17 pm
by AbleMods
In 7.0.5 there is a new nVelocity script variable that builds the complete unsubscribe URL for you so you don't have to construct it manually.

Just put this at the bottom of the your message....

Code: Select all

$unsubscribeLink
or

Code: Select all

${unsubscribeLink}

Re: Unsubscribe for newsletter

Posted: Wed Sep 08, 2010 2:15 pm
by foodsleuth
Hi, I put that in the email body, yes? It does not produce a link, just shows that text. In reference to the prior question, what template, this is just a basic contact email for marketing purposes. Do I need to update something else so my system knows that new script variable exists?

Re: Unsubscribe for newsletter

Posted: Wed Sep 08, 2010 2:19 pm
by AbleMods
What version of AbleCommerce are you running? The unsubscribe variable is only available in 7.0.5. Otherwise you have to build one manually.

Plus, I had to edit the subscribe user control to let the manual link work but that may have been because I'm on 7.0.5.

Re: Unsubscribe for newsletter

Posted: Thu Sep 09, 2010 9:20 am
by foodsleuth
I'm on 7.5 as well. I'm not a programmer but if you could briefly describe how/where to edit the subscribe user control? Thanks!

Re: Unsubscribe for newsletter

Posted: Thu Sep 09, 2010 9:55 am
by AbleMods
I didn't have to make any changes to get the link to show. Let's start there.

Copy/paste your whole email template to here and let's take a look at it together.

Re: Unsubscribe for newsletter

Posted: Sat Sep 18, 2010 8:37 am
by foodsleuth
I'm sure it's something lame I've done <g> but here it is

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Thank you for visiting MyWebStore</title>
</head>

<body>

<table border="1" width="66%" id="table1" cellspacing="0" cellpadding="0" style="border-style: dashed; border-width: 1px" bordercolor="#C1C1A4">
<tr>
<td width="357" bgcolor="#C1C1A4">
<p align="center"><font size="2">Thank you for visiting
Mywebstore.com and signing up for our product specials announcements</font>.&nbsp;
<br>
&nbsp;</td>
<td rowspan="2" bgcolor="#000000">
<p align="center"><font size="7" color="#FFFFFF">$10 off <br>
</font><font color="#FFFFFF" size="4">(that is a 20% savings based on a
$50.00 order)<br>
on any order of $50.00 or more</font></p>
<p align="center"><font size="4" color="#FFFFFF">Use Code: SEP10</font></p>
<p align="center"><font size="4" color="#FFFFFF">MYWEBSTORE.COM</font></td>
</tr>
<tr>
<td width="357" bordercolor="#FFFFFF">This is the first of our product
announcements and we wanted to let you know you'll always be the first
to know about new product arrivals and special savings offers.&nbsp; <br>
<br>
For 2 days only you can get $10.00 off any order of $50.00 or more.&nbsp;
The offer is good for any products in our online store.&nbsp; This offer
begins September 1 and ends at midnight CST September 2, 2010.<p align="center">
Thanks again for visiting Mywebstore.com<br>
<br>
<a href="http://store.mywebstore.com/">Shop Now..</a></p>
<p>${unsubscribeLink}</p>
<p>&nbsp;</td>
</tr>

</table>

</body>

</html>

Re: Unsubscribe for newsletter

Posted: Mon Sep 20, 2010 4:59 am
by mazhar
Well if you are on 7.0.5 then it should work. locate following code statement in your template

Code: Select all

<p>${unsubscribeLink}</p>
and update it as below

Code: Select all

<p><a href="${unsubscribeLink}">${unsubscribeLink}</a></p>

Re: Unsubscribe for newsletter

Posted: Sat Sep 25, 2010 8:12 am
by foodsleuth
Hi,
That didnt work at all. First it nows shows like this on the mailer:
${unsubscribeLink} <<-- that actually shows on th emailing piece.

Re: Unsubscribe for newsletter

Posted: Sat Sep 25, 2010 8:47 am
by mazhar
Please go to merchant side and then open Help -> About AbleCommerce page. Finally post the contents of text box that you will see on page here.

Re: Unsubscribe for newsletter

Posted: Tue Sep 28, 2010 9:42 am
by foodsleuth
AbleCommerce for ASP.NET
VERSION: 7.0.5.14053
MSSQL v2005
AC SCHEMA v2005
ASP.NET TRUST: Unrestricted

AjaxControlToolkit: 3.0.20229.20843
CommerceBuilder: 7.5.14053.0
CommerceBuilder.AbleCommerceTax: 7.4.13043.0
CommerceBuilder.AcTestProvider: 1.0.0.0
CommerceBuilder.AustraliaPost: 7.1.0.0
CommerceBuilder.AuthorizeNet: 7.3.12625.0
CommerceBuilder.BankOfCanada: 7.3.0.0
CommerceBuilder.CanadaPost: 7.0.0.0
CommerceBuilder.Configuration: 7.5.14053.0
CommerceBuilder.CyberSource: 7.5.13718.0
CommerceBuilder.Data: 7.5.14053.0
CommerceBuilder.DataClient.Api: 7.5.14053.0
CommerceBuilder.DataClient.Csv: 1.0.0.0
CommerceBuilder.DHLInternational: 7.2.11307.0
CommerceBuilder.ECB: 7.0.0.0
CommerceBuilder.FedEx: 7.0.9725.0
CommerceBuilder.GoogleCheckout: 7.3.12468.0
CommerceBuilder.InternetSecure: 7.0.9764.0
CommerceBuilder.LinkPoint: 7.0.9764.0
CommerceBuilder.Paradata: 7.0.9764.0
CommerceBuilder.PayFlowPro: 7.0.10061.0
CommerceBuilder.PayJunction: 7.3.12625.0
CommerceBuilder.PaymentechOrbital: 7.5.14028.0
CommerceBuilder.PayPal: 7.4.13453.0
CommerceBuilder.Protx: 7.3.12327.0
CommerceBuilder.Services: 7.5.14053.0
CommerceBuilder.SkipJack: 7.0.9764.0
CommerceBuilder.UPS: 7.0.10041.0
CommerceBuilder.USPS: 7.4.13441.0
CommerceBuilder.WATax: 7.5.13942.0
CommerceBuilder.Web: 7.5.14053.0
ComponentArt.Web.UI: 2008.2.1267.35
CyberSource.Base: 2.0.0.0
CyberSource.Clients: 5.0.2.0
CyberSource.Clients.XmlSerializers: 5.0.2.0
CyberSource.WSSecurity: 2.0.0.0
CybsWSSecurityIOP: 1.0.0.0
DataPort.Framework: 7.4.221.0
FredCK.FCKeditorV2: 2.5.2912.21007
GourmetSleuth.AbleCommerce: 1.0.0.0
ICSharpCode.SharpZipLib: 0.85.5.452
LinkPointTransaction: 1.0.1797.29766
log4net: 1.2.10.0
NVelocity: 7.2.0.0
PaygatewayNET: 3.0.0.0
paypal_base: 4.2.1.0
PFProCOMLib: 1.0.0.0
PFProdotNET: 0.0.0.0
Validators: 1.0.0.0
WebChart: 1.1.1.6
wwHoverPanel: 1.85.0.0

Re: Unsubscribe for newsletter

Posted: Wed Sep 29, 2010 6:36 am
by mazhar
That's strange. It should work in 7.0.5. BTW give a try by creating an Email list of type with confirmation. Then subscribe that Email list using some account with valid Email address. After subscription system will trigger a notification to your Email address confirm that this Email contains unsubscribe link.

Re: Unsubscribe for newsletter

Posted: Wed Sep 29, 2010 8:07 am
by plugables
Make sure that the email template is set to be triggered on a subscribe/unsubscribe event. If email is being triggered for some other even then these links will not be available.