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)
-   -   Detailed Product Images - Adjusting the "Internal" option (https://forum.x-cart.com/showthread.php?t=61069)

nickff 09-30-2011 08:04 AM

Detailed Product Images - Adjusting the "Internal" option
 
/*** UPDATE ***/

I ended up hacking the cloud-zoom option, as it has the onclick functionality inherently. I then set the zoom function to "display:none" in the cloud-zoom css file. A bit of a hack, but it has the desired result. I'd still be interested in knowing if anyone has a way of getting the "internal" option to work on click though!

/*** /END UPDATE ***/



Hi All,

I'm using the "Internal" detailed product image option here, with thumbnails displayed under the main product image:

http://future.thefutureforward.com/~field/product-one.html

What I'm looking to do is have the image replacement occur "onclick" instead of "onmouseover". I also need to remove the inline width/height style settings on the "image-box" div, but when I do this currently it breaks the internal image swap function.

I've tried straight swapping out the existing "onmouseover" code in "common_files/module/Detailed_Product_Images/popup_image.tpl" and placing it inside the "onclick" of the <a> tag, but it doesn't work.


Any ideas on how to make that internal image swap occur onclick would be amazing!


All times are GMT -8. The time now is 11:11 AM.

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