View Single Post
  #28  
Old 09-27-2011, 05:20 PM
 
plnewton plnewton is offline
 

Advanced Member
  
Join Date: Sep 2011
Posts: 65
 

Default Re: help with products_list.tpl problem, repeating product?

Do you mind looking at my code, and telling me what you think is wrong with my design? The products_t.tpl is throwing off my design!!!


Here's my products_t.tpl file;

{*



$Id: products_t.tpl,v 1.3.2.5 2010/12/15 11:57:05 aim Exp $



vim: set ts=2 sw=2 sts=2 et:



*}







{list2matrix assign="products_matrix" assign_width="cell_width" list=$products row_length=$config.Appearance.products_per_row}



{assign var="is_matrix_view" value=true}







{if $products_matrix}







<table cellspacing="3" class="products products-table width-100" summary="{$lng.lbl_products_list|escape}">







{foreach from=$products_matrix item=row name=products_matrix}







<tr{interline name=products_matrix additional_class="product-name-row"}>







{*Display product_thumbnail product_offer_thumb*}



{foreach from=$row item=product name=products}



{if $product}







<td{interline name=products additional_class="product-cell"}>



<div class="image">



<a href="{$product.alt_url|default:$product.page_url| amp}">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.tmbn_x image_y=$product.tmbn_y product=$product.product tmbn_url=$product.tmbn_url}</a>



</div>



</td>







{/if}



{/foreach}







</tr>













{*Display product code*}



{if $config.Appearance.display_productcode_in_list eq "Y"}



<tr{interline name=products_matrix}>







{foreach from=$row item=product name=products}



{if $product}







<td{interline name=products additional_class="product-cell"}>



{if $product.productcode}



<div class="sku"><a href="{$url}">{$product.productcode|escape}</a></div>



{else}



&nbsp;



{/if}



</td>







{/if}



{/foreach}







</tr>



{/if}

































{if not $smarty.foreach.products_matrix.last}



<tr class="separator">



<td colspan="{$config.Appearance.products_per_row|defa ult:1}">&nbsp;</td>



</tr>



{/if}







{/foreach}







</table>







{/if}






When I remove the include products_t.tpl, my design goes back to normal. So, it's something within this file causing the issue, I believe.


Link to my site is here; http://5dollarinkcartridges.com.au/newsite/manufacturers.php?manufacturerid=3
__________________
Version 4.4.3
Reply With Quote