richard
-
5/5/2011 2:58:21 PM
RE:Ajax Shopping Cart Update Panels
Not what I would call amazing, bit of a hack all round really.
Here is the page with the Ajax button on it: http://www.rubyslist.co.nz/Shop.aspx
In retrospect I possibly could have achieved the same thing by just using a client side button and Jquery ajax and hitting a cms page to add the product to the cart.
The hardest thing was getting the value of the quantity dropdown as it is not part of the control that has the button, I had to pass in the clientid of the quantity drop down control to find in the page.
Here is the code, the text file has the transformation: http://clients.federationmedia.co.nz/RubysShoppingCartItemSelector.zip
Good luck.
Richard
|