Jump to content

Display 3 lines instead of 2 on Front Office Product page


Recommended Posts

Hi Bellini13,

 

I couldn't find anything in the products.tpl file but I did in the product-list.tpl.

 

The field that I am interested in is the product.name field as per the following block of code:

 

It is being truncated to 45 characters. I've done a quick test and this is where I need to change it :

 

Thanks for pointing me in the right direction!

 

 

<h5 itemprop="name">
                            {if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if}
                            <a class="product-name" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url" >
                                <span class="list-name">{$product.name|truncate:45:'...'|escape:'html':'UTF-8'}</span>
                                <span class="grid-name">{$product.name|truncate:45:'...'|escape:'html':'UTF-8'}</span>
                            </a>
                        </h5>

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...