Jump to content

How to view full product name / modify text length


Recommended Posts

I have remove the right column, and then the product name in categories view is still following the same size as before, and change the unfitted product name to dot ( .. )

 

I need to set the length so it will fit the current column width. or maybe just let it be full product name

 

I've attach an image to show the situation.

 

Thanks before for helping. 

 

post-735083-0-51973500-1387798749_thumb.gif

Edited by blessmeluck (see edit history)
Link to comment
Share on other sites

product-list.tpl line  ~43

<h3>{if isset($product.new) && $product.new == 1}<span class="new">{l s='New'}</span>{/if} {if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if}<a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></h3>

there is a code:

{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}

instead of code above use this:

{$product.name|escape:'htmlall':'UTF-8'}
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...