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 image question (https://forum.x-cart.com/showthread.php?t=9386)

Light Speed 09-15-2004 11:59 PM

Detailed image question
 
How can I get the detailed image loop to skip the first detailed image and start the loop with the second detailed image?

On my products page i replaced the thumnail with a revised version of the product_images.tpl where I removed the loop so my first large detailed image is now up where the thumbnail was :)

My problem is that that first image now appears twice. In my new location and as the first image in the detailed images area where the unchanged product_images.tpl is used so I want to remove the first image form the detailed images loop and have it start with the second image.

Is this possible?

The code for the detailed images is below.

Code:

{* $Id: product_images.tpl,v 1.7.2.2 2003/06/24 10:43:25 svowl Exp $ *}
{if $images ne ""}
{capture name=dialog}
<div align=center>
{section name=image loop=$images}
{if $images[image].avail eq "Y"}
{if $images[image].tmbn_url}
[img]{$images[image].tmbn_url}[/img]
{else}
[img]../product_image.php?imageid={$images[image].imageid}[/img]
{/if}




{/if}
{/section}
</div>
{/capture}
{if $smarty.capture.dialog ne ""}
{include file="dialog.tpl" title=$lng.lbl_detailed_images content=$smarty.capture.dialog extra="width=100%"}
{/if}
{/if}


shan 09-16-2004 04:07 AM

try swap

Code:

[img]{$images[image].tmbn_url}[/img]

for

Code:

{if $images[image].tmbn_url ne $images[0].tmbn_url }

[img]{$images[image].tmbn_url}[/img]

{/if}


Light Speed 09-16-2004 10:45 AM

THANKS SHAN !!!!!!!! :D :D :)


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

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