View Single Post
  #6  
Old 01-07-2009, 10:30 PM
  Vetrivel's Avatar 
Vetrivel Vetrivel is offline
 

eXpert
  
Join Date: Apr 2008
Posts: 398
 

Default Re: Number of characters shown in product modify search

Yeap.Thats right.
the file is in skin1/main/products.tpl
and its original length is 35 {$products[prod].product|truncate:35:"...":false}
Note to kmjperformance:please mentioned the path while posting because products.tpl is present in both place(customer/main/products.tpl and skin1/main/products.tpl).So that it will easy for others to work out.


Quote:
Originally Posted by kmjperformance
Figured it out!

In Products.tpl search for...(I think it's about half way down)

Code:
<td width="100%">{if $products[prod].main eq "Y" or $main ne "category_products"}<b>{/if}<a href="product_modify.php?productid={$products[prod].productid}{if $navpage}&amp;page={$navpage}{/if}">{$products[prod].product|truncate:128:"...":false}</a>{if $products[prod].main eq "Y" or $main ne "category_products"}</b>{/if}</td>

I forgot what the original length was, but change the bold-red number to whatever you want it truncated to. I chose 128 because I'm pretty sure none of my product titles are longer than that.

Hope this helps!
Reply With Quote