What is the Add to Basket URL in Gold
-
- Commander (CMDR)
- Posts: 118
- Joined: Sat Dec 20, 2008 11:27 pm
What is the Add to Basket URL in Gold
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.
-
- Commander (CMDR)
- Posts: 118
- Joined: Sat Dec 20, 2008 11:27 pm
Re: What is the Add to Basket URL in Gold
I wish someone would help me out here. Thanks.
- compunerdy
- Admiral (ADM)
- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
Re: What is the Add to Basket URL in Gold
I need this functionality as well so I hope it is still there and able to handle kits/variants.
Re: What is the Add to Basket URL in Gold
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.
- compunerdy
- Admiral (ADM)
- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
Re: What is the Add to Basket URL in Gold
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
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
Re: What is the Add to Basket URL in Gold
No it will not. I just looked at code and it seems to be taking care of normal products and kits.compunerdy wrote: I cannot recall, does it works with variants if you hard code a choice? If not that would be a good addition.
- compunerdy
- Admiral (ADM)
- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
Re: What is the Add to Basket URL in Gold
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?
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?
-
- Commander (CMDR)
- Posts: 118
- Joined: Sat Dec 20, 2008 11:27 pm
Re: What is the Add to Basket URL in Gold
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?
Re: What is the Add to Basket URL in Gold
You just need to upload both AddToBasket.aspx and AddToBasket.aspx.cs file to root of your website and you should be good.
-
- Commander (CMDR)
- Posts: 118
- Joined: Sat Dec 20, 2008 11:27 pm
Re: What is the Add to Basket URL in Gold
Thanks! See, I was trying to make it harder than it was.