View Single Post
  #19  
Old 09-27-2011, 04:58 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

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

Before we go any further, do you realize that this template may be used in other sections? Like the home page or a category page. Look at:
http://5dollarinkcartridges.com.au/newsite/home.php?cat=4 The categories are being displayed according to products_t.tpl I believe, due to the setting of Number of Columns in Appearance section. If you were to remove the number of columns setting, this category page would most likely be displayed using the products_list.tpl

If you want to edit the display in just this section, make a copy of products_t.tpl and call it products_t_manu.tpl or whatever. Then look in the template that is calling the products_t.tpl on your manufacturers page, it will be something like {include file="customer/main/products_t.tpl"} change this to reference your new tpl.

Look in your new tpl.

Move this row:
Code:
<tr{interline name=products_matrix}> {foreach from=$row item=product name=products} {if $product} <td{interline name=products additional_class="product-cell"}> <div class="image"> {if $product.product_class eq 'O' or $product.product_class eq 'W' or $product.product_class eq 'D'} {include file="customer/main/program_thumbnail.tpl"} {else} <table> <tr><td> <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> </td></tr> <tr><td align="center" width="{if $max_images_width gt "0"}{$max_images_width}{/if}" class="product-custom"> <a href="{$product.alt_url|default:$product.page_url|amp}" class="product-custom" title="{$product.product|amp}">{$product.product|amp}</a> </td></tr> </table> {/if} {if $active_modules.Special_Offers and $product.have_offers} {include file="modules/Special_Offers/customer/product_offer_thumb.tpl"} {/if} </div> </td> {/if} {/foreach} </tr>
above your sku numbers.

Delete or comment out:
Code:
{if $active_modules.Customer_Reviews and $rating_data_exists} <tr{interline name=products_matrix}> {foreach from=$row item=product name=products} {if $product} <td{interline name=products additional_class="product-cell"}> {if $product.rating_data} {include file="modules/Customer_Reviews/vote_bar.tpl" rating=$product.rating_data productid=$product.productid} {/if} </td> {/if} {/foreach} </tr> {/if}

Comments are controlled by
{* This is a comment
it can be multi-line *}

Use comments to non-destructively edit the code, while learning what controls what, instead of deleting you can first comment it out to see how it behaves.

I think I have steered you close to the answer now, you will need to continue to look through and eliminate a row at a time.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote