What is the Add to Basket URL in Gold

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
euroluxantiques
Commander (CMDR)
Commander (CMDR)
Posts: 118
Joined: Sat Dec 20, 2008 11:27 pm

What is the Add to Basket URL in Gold

Post by euroluxantiques » Thu Feb 21, 2013 11:49 am

The add to basket url in older versions was http://website/AddToBasket.aspx?ProductId=1. This format does not seem to work in Gold. What is the new format? Thanks.

euroluxantiques
Commander (CMDR)
Commander (CMDR)
Posts: 118
Joined: Sat Dec 20, 2008 11:27 pm

Re: What is the Add to Basket URL in Gold

Post by euroluxantiques » Sun Mar 03, 2013 11:42 am

I wish someone would help me out here. Thanks.

User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Re: What is the Add to Basket URL in Gold

Post by compunerdy » Sun Mar 03, 2013 1:44 pm

I need this functionality as well so I hope it is still there and able to handle kits/variants.

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

Re: What is the Add to Basket URL in Gold

Post by mazhar » Mon Mar 04, 2013 10:12 am

Here is the ported version of AddToBasket.aspx file for AC Gold which was orignally posted in viewtopic.php?f=42&t=5707&p=48043. I ported the VB page posted by compunerdy just to make sure it has all the corrections that were discussed in thread.

User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Re: What is the Add to Basket URL in Gold

Post by compunerdy » Mon Mar 04, 2013 12:11 pm

The code works great, thanks Maz.

I cannot recall, does it works with variants if you hard code a choice? If not that would be a good addition.

eurolux.. use this URL for adding to cart via the code Maz posted http://www.xxx.com/addtobasket.aspx?ProductIds=1,54,678

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

Re: What is the Add to Basket URL in Gold

Post by mazhar » Tue Mar 05, 2013 5:02 am

compunerdy wrote: I cannot recall, does it works with variants if you hard code a choice? If not that would be a good addition.
No it will not. I just looked at code and it seems to be taking care of normal products and kits.

User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Re: What is the Add to Basket URL in Gold

Post by compunerdy » Tue Mar 05, 2013 4:08 pm

Could it be made to do so.. Something like

http://www.xxx.com/addtobasket.aspx?Pro ... 4,678:PM11, etc..

Where 678 is a item with variants and PM11 is one of the variant choices?

euroluxantiques
Commander (CMDR)
Commander (CMDR)
Posts: 118
Joined: Sat Dec 20, 2008 11:27 pm

Re: What is the Add to Basket URL in Gold

Post by euroluxantiques » Tue Mar 05, 2013 4:10 pm

I'm not sure how to implement this file. I see it is an .aspx rather than a user control. Do I just register the file in any page that has an Add to Cart button to get the AddtoCart URL functionality that I'm looking for?

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

Re: What is the Add to Basket URL in Gold

Post by mazhar » Wed Mar 06, 2013 12:48 am

You just need to upload both AddToBasket.aspx and AddToBasket.aspx.cs file to root of your website and you should be good.

euroluxantiques
Commander (CMDR)
Commander (CMDR)
Posts: 118
Joined: Sat Dec 20, 2008 11:27 pm

Re: What is the Add to Basket URL in Gold

Post by euroluxantiques » Wed Mar 06, 2013 4:37 pm

Thanks! See, I was trying to make it harder than it was.

Post Reply