Jump to content
  • 0

Długość nazwy produktu w Prestashop 1.6.0.8


RSI-SHOP

Question

Witam czy wie ktoś gdzie zmienić długość nazwy produktu ? Chodzi mi o wyświetlenie większej ilości znaków z np. 33 do 160 lub full name. W product-list.tpl nie widzę takiej opcji . . .nawet w standardowym szablonie.... Pomoże ktoś ?

 

Znalazłem coś takiego :

<div class="right-block">
					<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" >
							{$product.name|truncate:45:'...'|escape:'html':'UTF-8'}
						</a>
					</h5>
Edited by RSI-SHOP (see edit history)
Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0
<a class="product-name" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url" >
                            {$product.name|truncate:45:'...'|escape:'html':'UTF-8'}
</a>

truncate przycina do 45 znaków

Link to comment
Share on other sites

  • 0

spróbuj w category.tpl

<h5>
<a class="subcategory-name" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|truncate:25:'...'|escape:'html':'UTF-8'}</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...