Page 1 of 1
What is the Add to Basket URL in Gold
Posted: Thu Feb 21, 2013 11:49 am
by euroluxantiques
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.
Re: What is the Add to Basket URL in Gold
Posted: Sun Mar 03, 2013 11:42 am
by euroluxantiques
I wish someone would help me out here. Thanks.
Re: What is the Add to Basket URL in Gold
Posted: Sun Mar 03, 2013 1:44 pm
by compunerdy
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
Posted: Mon Mar 04, 2013 10:12 am
by mazhar
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.
Re: What is the Add to Basket URL in Gold
Posted: Mon Mar 04, 2013 12:11 pm
by compunerdy
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
Re: What is the Add to Basket URL in Gold
Posted: Tue Mar 05, 2013 5:02 am
by mazhar
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.
Re: What is the Add to Basket URL in Gold
Posted: Tue Mar 05, 2013 4:08 pm
by compunerdy
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?
Re: What is the Add to Basket URL in Gold
Posted: Tue Mar 05, 2013 4:10 pm
by euroluxantiques
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
Posted: Wed Mar 06, 2013 12:48 am
by mazhar
You just need to upload both AddToBasket.aspx and AddToBasket.aspx.cs file to root of your website and you should be good.
Re: What is the Add to Basket URL in Gold
Posted: Wed Mar 06, 2013 4:37 pm
by euroluxantiques
Thanks! See, I was trying to make it harder than it was.