Item automatically added to cart after link is clicked

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
igavemybest
Captain (CAPT)
Captain (CAPT)
Posts: 388
Joined: Sun Apr 06, 2008 5:47 pm

Item automatically added to cart after link is clicked

Post by igavemybest » Wed Jul 15, 2009 12:53 pm

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?

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

Re: Item automatically added to cart after link is clicked

Post by mazhar » Thu Jul 16, 2009 3:00 am

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

User avatar
igavemybest
Captain (CAPT)
Captain (CAPT)
Posts: 388
Joined: Sun Apr 06, 2008 5:47 pm

Re: Item automatically added to cart after link is clicked

Post by igavemybest » Thu Jul 16, 2009 9:04 am

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?


User avatar
igavemybest
Captain (CAPT)
Captain (CAPT)
Posts: 388
Joined: Sun Apr 06, 2008 5:47 pm

Re: Item automatically added to cart after link is clicked

Post by igavemybest » Fri Jul 17, 2009 3:06 pm

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;

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

Re: Item automatically added to cart after link is clicked

Post by mazhar » Mon Jul 20, 2009 2:10 am

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

Code: Select all

<%@ Page Language="C#" %>
Also have a look at following thread
viewtopic.php?f=42&t=10490

Post Reply