X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Detailed Product Images Popup on Thumbnail click. (https://forum.x-cart.com/showthread.php?t=202)

B00MER 01-22-2004 09:17 AM

skin1/modules/Detailed_Product_images/product_images.tpl update this file with the following code.

Code:

{if $images[image].tmbn_url}
[img]{$images[image].tmbn_url}[/img]
{else}
[img]{$xcart_web_dir}/product_image.php?imageid={$images[image].imageid}[/img]
{/if}


magnumkp 02-20-2004 07:10 AM

I got it all working and it is a fantastic mod (as I'm stuck on 56k at home I hate looking at big pics myself). However, I've got a bit of a problem as I've put a bit of text under the images so people know that you can click. However, not all products have detailed images. What coding do I need to hide the text when there are no detailed images. TIA. :D

B00MER 02-20-2004 07:16 AM

{if $images}
...
{/if}

magnumkp 02-23-2004 01:26 AM

Thanks boomer, works a treat :)

cspecken 03-09-2004 03:33 PM

Still trying to get the resize to work! Any Ideas?
 
Hi, has anyone been able to resize the popup window to fit the image correctly?

Thanks in Advance

B00MER 03-09-2004 05:19 PM

Inside the skin1/modules/Detailed_Product_Images/product_images.tpl after the {section name=image loop=$images} code add:

Code:

<SCRIPT language=JavaScript1.2>
<!--
h = {$images[image].image_y} + 65;
w = {$images[image].image_x} + 85;
window.resizeTo(h,w);
-->
</SCRIPT>


May want to adjust the 65, 85 to whatever you like for spacing. :wink:

cspecken 03-12-2004 12:55 PM

Now Popup will not POPUP!
 
Hi Boomer, I tried your suggestion, but now the Detailed image only shows below the detailed text, the popup window no longer displays. My images are stored on the file system. Any ideas?




Thanks, Chris

X-Cart V.3.5
PHP 4.3.3

SMDStudios 04-03-2004 01:48 PM

Quick question.....

If there isnt a detailed image for a product it will show the thumbnail image in place of the detail image correct?

B00MER 04-04-2004 07:21 PM

No, if no detailed image exists the thumbnail isn't clickable, no window popup would occur on click.

SMDStudios 04-05-2004 05:47 AM

weird...It doesnt work for me like that. How could I alter the code so if there isnt a detailed image it shows the full size thumbnail image?


All times are GMT -8. The time now is 12:33 PM.

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