Page 1 of 1

Direct linking

Posted: Thu Dec 27, 2007 9:29 am
by zenonpham
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.

Posted: Wed Jan 02, 2008 4:01 pm
by Logan Rhodehamel
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.

Re: Direct linking

Posted: Tue May 06, 2008 11:54 pm
by archeie
what is the link if you want to add multiple products to the cart by one single link from an external site? thanks.

Re: Direct linking

Posted: Wed May 07, 2008 9:56 am
by Logan Rhodehamel
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.

Re: Direct linking

Posted: Wed May 07, 2008 11:17 am
by archeie
sorry but that really isnt helpful. can u please be more specific how to create that script..thanks

Re: Direct linking

Posted: Wed May 07, 2008 11:23 am
by Logan Rhodehamel
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.

Re: Direct linking

Posted: Wed May 07, 2008 12:57 pm
by archeie
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.

Re: Direct linking

Posted: Wed May 07, 2008 1:54 pm
by sohaib
There is some code posted in this thread that might be helpful
viewtopic.php?f=42&t=7100