Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Detailed image question

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-15-2004, 11:59 PM
 
Light Speed Light Speed is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 921
 

Default 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}
Reply With Quote
  #2  
Old 09-16-2004, 04:07 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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}
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 09-16-2004, 10:45 AM
 
Light Speed Light Speed is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 921
 

Default

THANKS SHAN !!!!!!!!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020