Direct linking

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
zenonpham
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 29
Joined: Fri Dec 14, 2007 9:56 am

Direct linking

Post by zenonpham » Thu Dec 27, 2007 9:29 am

A question about linking directly to Able Commerce functions: Is there a way to add a product to the basket and proceed to checkout by clicking one link on an external web page that is not related to Able Commerce?

The closest I've been able to come is a link that goes to the product detail page.

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Post by Logan Rhodehamel » Wed Jan 02, 2008 4:01 pm

You have to know the product id and it won't work with options or kits.

yoururl/BuyProduct.ashx?p=#

Replace # with the ID of the product.
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

archeie
Ensign (ENS)
Ensign (ENS)
Posts: 11
Joined: Tue May 06, 2008 11:53 pm

Re: Direct linking

Post by archeie » Tue May 06, 2008 11:54 pm

what is the link if you want to add multiple products to the cart by one single link from an external site? thanks.

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Direct linking

Post by Logan Rhodehamel » Wed May 07, 2008 9:56 am

archeie wrote:what is the link if you want to add multiple products to the cart by one single link from an external site? thanks.
This feature is not built in. You could customize a script to do so without much effort.
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

archeie
Ensign (ENS)
Ensign (ENS)
Posts: 11
Joined: Tue May 06, 2008 11:53 pm

Re: Direct linking

Post by archeie » Wed May 07, 2008 11:17 am

sorry but that really isnt helpful. can u please be more specific how to create that script..thanks

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Direct linking

Post by Logan Rhodehamel » Wed May 07, 2008 11:23 am

The file BuyProduct.ashx would serve as a good starting point. This file adds a single product to the basket based on a query string parameter. Extend the script to fit your need.
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

archeie
Ensign (ENS)
Ensign (ENS)
Posts: 11
Joined: Tue May 06, 2008 11:53 pm

Re: Direct linking

Post by archeie » Wed May 07, 2008 12:57 pm

ok we're not techies to create new codes into that file and in fact we have the hosted platform which means we can only see the compiled version of the codes. Before we signed up to the hosting account we were told that this solution is feasible.

i sent an email to support@ablecommerce.com but havent received any responeses yet.

User avatar
sohaib
Developer
Developer
Posts: 1079
Joined: Fri Jan 23, 2004 1:38 am

Re: Direct linking

Post by sohaib » Wed May 07, 2008 1:54 pm

There is some code posted in this thread that might be helpful
viewtopic.php?f=42&t=7100

Post Reply