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

Detailed Image Position and Upselling Links

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 11-29-2003, 05:59 AM
 
grahammills grahammills is offline
 

Advanced Member
  
Join Date: May 2003
Posts: 39
 

Default

Use this for ver 3.5.0 and it works with filesystem images too.
Displays two images per row.

Quote:
{if $images ne ""}
{capture name=dialog}
<table border=0 width=100%>
<tr>
{section name=image loop=$images}
{if $smarty.section.image.index is div by 2}
</tr>
<tr valign="top">
{/if}
<td valign="top">
<table border=0 width=100%>
<tr>
<td align=center valign=top>
{if $images[image].avail eq "Y"}
{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}
{/if}
</td>
</tr>
<tr>
<td align=center valign=top>
{$images[image].alt}
</td>
</tr>
</table>
</td>
{/section}
</td>
</tr>
</table>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_detailed_images content=$smarty.capture.dialog extra="width=100%"}
{/if}
Reply With Quote
  #12  
Old 12-04-2003, 08:43 PM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

Nice hack, although I prefer to use only one thumbnail that represents the product and doesnt confuse consumer and use more detailed products for the prospect to review.
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
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 04:41 PM.

   

 
X-Cart forums © 2001-2020