Unsubscribe for newsletter

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
butterscotch
Lieutenant (LT)
Lieutenant (LT)
Posts: 80
Joined: Fri Sep 19, 2008 11:39 am

Unsubscribe for newsletter

Post by butterscotch » Wed Feb 04, 2009 4:19 pm

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,

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Unsubscribe for newsletter

Post by mazhar » Fri Feb 06, 2009 4:07 am

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>

butterscotch
Lieutenant (LT)
Lieutenant (LT)
Posts: 80
Joined: Fri Sep 19, 2008 11:39 am

Re: Unsubscribe for newsletter

Post by butterscotch » Tue Feb 10, 2009 1:36 pm

thank you so much!

Robbie@FireFold
Commodore (COMO)
Commodore (COMO)
Posts: 433
Joined: Wed May 28, 2008 9:42 am
Location: Concord, NC
Contact:

Re: Unsubscribe for newsletter

Post by Robbie@FireFold » Tue Feb 10, 2009 2:22 pm

I so needed this!

Adding it into our template.

Thanks guys!
Robbie Hodge
General Manager
Robbie@FireFold.com
http://www.FireFold.com

rpb3
Lieutenant (LT)
Lieutenant (LT)
Posts: 60
Joined: Fri Jan 23, 2009 11:20 am

Re: Unsubscribe for newsletter

Post by rpb3 » Wed Oct 28, 2009 12:44 pm

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.

foodsleuth
Commander (CMDR)
Commander (CMDR)
Posts: 139
Joined: Wed Mar 31, 2010 8:59 pm

Re: Unsubscribe for newsletter

Post by foodsleuth » Wed Sep 01, 2010 11:30 am

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"

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Unsubscribe for newsletter

Post by mazhar » Wed Sep 01, 2010 11:52 pm

Try following

Code: Select all

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

foodsleuth
Commander (CMDR)
Commander (CMDR)
Posts: 139
Joined: Wed Mar 31, 2010 8:59 pm

Re: Unsubscribe for newsletter

Post by foodsleuth » Thu Sep 02, 2010 8:36 am

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"

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Unsubscribe for newsletter

Post by mazhar » Fri Sep 03, 2010 1:07 am

Can you provide the name of Email template you are using in this case ?

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Unsubscribe for newsletter

Post by AbleMods » Fri Sep 03, 2010 1:17 pm

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}
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

foodsleuth
Commander (CMDR)
Commander (CMDR)
Posts: 139
Joined: Wed Mar 31, 2010 8:59 pm

Re: Unsubscribe for newsletter

Post by foodsleuth » Wed Sep 08, 2010 2:15 pm

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?

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Unsubscribe for newsletter

Post by AbleMods » Wed Sep 08, 2010 2:19 pm

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.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

foodsleuth
Commander (CMDR)
Commander (CMDR)
Posts: 139
Joined: Wed Mar 31, 2010 8:59 pm

Re: Unsubscribe for newsletter

Post by foodsleuth » Thu Sep 09, 2010 9:20 am

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!

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Unsubscribe for newsletter

Post by AbleMods » Thu Sep 09, 2010 9:55 am

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.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

foodsleuth
Commander (CMDR)
Commander (CMDR)
Posts: 139
Joined: Wed Mar 31, 2010 8:59 pm

Re: Unsubscribe for newsletter

Post by foodsleuth » Sat Sep 18, 2010 8:37 am

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>

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Unsubscribe for newsletter

Post by mazhar » Mon Sep 20, 2010 4:59 am

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>

foodsleuth
Commander (CMDR)
Commander (CMDR)
Posts: 139
Joined: Wed Mar 31, 2010 8:59 pm

Re: Unsubscribe for newsletter

Post by foodsleuth » Sat Sep 25, 2010 8:12 am

Hi,
That didnt work at all. First it nows shows like this on the mailer:
${unsubscribeLink} <<-- that actually shows on th emailing piece.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Unsubscribe for newsletter

Post by mazhar » Sat Sep 25, 2010 8:47 am

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.

foodsleuth
Commander (CMDR)
Commander (CMDR)
Posts: 139
Joined: Wed Mar 31, 2010 8:59 pm

Re: Unsubscribe for newsletter

Post by foodsleuth » Tue Sep 28, 2010 9:42 am

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Unsubscribe for newsletter

Post by mazhar » Wed Sep 29, 2010 6:36 am

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.

plugables
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Sat Aug 15, 2009 4:04 am
Contact:

Re: Unsubscribe for newsletter

Post by plugables » Wed Sep 29, 2010 8:07 am

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.

Post Reply