links in javascript
Posted:
Sat Mar 23, 2013 5:23 pm
by queenofangels
I have a slideshow of images. I want to add the "add-to-cart" link along with the text for each image. I'm using JavaScript for the slideshow and I'm pretty much going around in circles trying to get this to work. Any examples or suggestions of how to accomplish this would be appreciated.
Re: links in javascript
Posted:
Wed Mar 27, 2013 9:21 am
by Jim
You might checkout this sample code for a javascript slideshow.
http://www.javascriptkit.com/script/script2/jsslide.shtml
It shows how to associate a link with each image. Using that method you could put the add to cart link with each product image displayed. You can get the link code by going to Merchandising > Order Anywhere, select the product and click the Show Code button. Then click on the Show URLs and copy the Add to Cart URL: section to your javascript code.
Re: links in javascript
Posted:
Mon Apr 29, 2013 11:39 am
by queenofangels
Thanks Jim,
I ended up doing exactly what you suggested.