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 Position and Upselling Links (https://forum.x-cart.com/showthread.php?t=3822)

grahammills 11-29-2003 05:59 AM

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}

leon 12-04-2003 08:43 PM

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.


All times are GMT -8. The time now is 08:18 PM.

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