Page 1 of 1
Item automatically added to cart after link is clicked
Posted: Wed Jul 15, 2009 12:53 pm
by igavemybest
Is there any way to send out an email, where an item is automatically added to the cart from a link a potential customer clicks on?
Re: Item automatically added to cart after link is clicked
Posted: Thu Jul 16, 2009 3:00 am
by mazhar
You can try to trigger Email when your code adds something to basket. Read following threads about how to create Email template and send Email manually.
viewtopic.php?f=44&t=11483
viewtopic.php?f=42&t=8682
Re: Item automatically added to cart after link is clicked
Posted: Thu Jul 16, 2009 9:04 am
by igavemybest
Thanks, I think I wrote the question in a confusing way. The answer I was trying to get is....if a potential customer clicks on a link to my store (from an email for example) when they are redirected to my store, is there a way to have something automatically added to their cart?
Re: Item automatically added to cart after link is clicked
Posted: Thu Jul 16, 2009 9:12 am
by mazhar
Re: Item automatically added to cart after link is clicked
Posted: Fri Jul 17, 2009 3:06 pm
by igavemybest
So basically it is directing me to copy and paste the text into a aspx file called AddToCart.aspx or whatever I decide to call it. I did this but am getting the following error on Line 1. Any suggestions?
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The directive 'control' is unknown.
Source Error:
Line 1: <%@ Control Language="C#" ClassName="AddToCartEx" %>
Line 2: <script runat="server">
Line 3: private int _ProductId;
Re: Item automatically added to cart after link is clicked
Posted: Mon Jul 20, 2009 2:10 am
by mazhar
Sounds like you placed code straigth into the newly added page source. Try by replacing
Code: Select all
<%@ Control Language="C#" ClassName="AddToCartEx" %>
with following code line
Also have a look at following thread
viewtopic.php?f=42&t=10490