X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Product Options Icon, image or swatches code (https://forum.x-cart.com/showthread.php?t=31031)

vtandon 05-08-2007 09:27 PM

Product Options Icon, image or swatches code
 
Hi,

After searching for code for 2 days I decided to write some Javascript to have Product Options have swatches or images for color options etc....

Here is the working example:
http://208.109.212.12/product.php?productid=2&cat=1&page=1

And if the above link does not work try:
http://www.licensetoride.com/product.php?productid=2&cat=1&page=1


Here is the code:
--------------------------------------------------------------------------------------------
<a onclick="javascript: window.document.orderform.po2.options[0].selected=true;check_options(); " href="javascript:void();check_options();">
<img border="0" align="" alt="" src="http://www.licensetoride.com/catalog/colorimages/cap_blue_th.jpg" /></a><br />
--------------------------------------------------------------------------------------------

Varun

balinor 05-09-2007 02:46 AM

Re: Product Options Icon, image or swatches code
 
HI Varun, can you please let us know what versions this applies to? If you can update your signature with your X-Cart version per the forum guidelines that would be great. Thanks!


All times are GMT -8. The time now is 04:02 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.