Item automatically added to cart after link is clicked
- igavemybest
- Captain (CAPT)
- Posts: 388
- Joined: Sun Apr 06, 2008 5:47 pm
Item automatically added to cart after link is clicked
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
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
viewtopic.php?f=44&t=11483
viewtopic.php?f=42&t=8682
- igavemybest
- Captain (CAPT)
- Posts: 388
- Joined: Sun Apr 06, 2008 5:47 pm
Re: Item automatically added to cart after link is clicked
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?
- igavemybest
- Captain (CAPT)
- Posts: 388
- Joined: Sun Apr 06, 2008 5:47 pm
Re: Item automatically added to cart after link is clicked
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;
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
Sounds like you placed code straigth into the newly added page source. Try by replacing
with following code line
Also have a look at following thread
viewtopic.php?f=42&t=10490
Code: Select all
<%@ Control Language="C#" ClassName="AddToCartEx" %>
Code: Select all
<%@ Page Language="C#" %>
viewtopic.php?f=42&t=10490