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)
-   -   Change recomended list to show 3 in a row instead of vertica (https://forum.x-cart.com/showthread.php?t=7104)

info@bodymarcat.com 04-11-2004 01:37 PM

Change recomended list to show 3 in a row instead of vertica
 
I have figured out (with all the great posts in here) how to add thumbnails the way I want in the recomended list. What I want to do now is change it to display 2 or 3 in a row instead of vertical.

Below is the piece of code for the related_products.tpl (in bold is what I added to default)

{* $Id: related_products.tpl,v 1.7 2002/10/22 10:27:05 olga Exp $ *}
{if $product_links ne ""}
{capture name=dialog}
<table border=0 cellspacing=5>
{section name=cat_num loop=$product_links}
<tr class="ItemsList">
<td width=1%>#{$product_links[cat_num].productid}</td>
<td width=99%>
<a href="product.php?productid={ $product_links[cat_num].productid }" >
{ $product_links[cat_num].product|escape}

[img]../image.php?productid={$product_links[cat_num].productid}[/img]

</a>
</td>
</tr>
{/section}
</table>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_related_products content=$smarty.capture.dialog extra="width=100%"}
{/if}

If anyone could tell me what and where to change I would appreciate it.

info@bodymarcat.com 04-11-2004 02:27 PM

I forgot
 
The alt tag is returning array instead of product name.
How do I return the product name in an alt tag.

info@bodymarcat.com 04-11-2004 02:41 PM

Fixed alt tag
 
fixed lat tag with this

alt="{$product_links[cat_num].product}"


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

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