Prestashop change limit of caracters on the product title in products template

MrGreen
50 Posts
MrGreen posted this 10 November 2015

Hi,

how to change limit of caracters on the product title in products template ?

t1.jpg

Hi, how to change limit of caracters on the product title in products template ? !t1.jpg!
Vote to pay developers attention to this features or issue.
17 Comments
Order By: Standard | Newest
Support Team posted this 10 November 2015

Hello,

Please select Products and then navigate Product Description >> Description Length and set the value.
This will work in case you have plain text. If there are some tags, PrestaShop will cut them. In this case set the maximum size for the Short Description in Prestashop to as many characters as you wish. For this please go to Prestashop admin panel >> Preferences >> Products and add value for the Max size of short description. Then in Themler set Description Length to "0".

Sincerely,
Nettie,
BillionDigital Team

Hello, Please select Products and then navigate Product Description >> Description Length and set the value. This will work in case you have plain text. If there are some tags, PrestaShop will cut them. In this case set the maximum size for the Short Description in Prestashop to as many characters as you wish. For this please go to Prestashop admin panel >> Preferences >> Products and add value for the Max size of short description. Then in Themler set Description Length to "0". Sincerely, Nettie, BillionDigital Team
MrGreen
50 Posts
MrGreen posted this 25 November 2015

Hi,

i'm sorry but my question is about the product title, and not the product description :)

How to do please ?

Hi, i'm sorry but my question is about the product title, and not the product description :) How to do please ?
Support Team
Support Team posted this 27 November 2015

Hello,

Sorry for misunderstanding. I was confused by the screenshot on which the marked area was Product Descripiton (that in fact corresponds to Short Description in Prestashop).
There is no option to set the length for the Product Title in Themler, and it looks like Prestashop does not support this possibility either. I assume, that it is possible, to change the default minimum length by manual editing theme files.

Sincerely,
Nettie,
BillionDigital Team

Hello, Sorry for misunderstanding. I was confused by the screenshot on which the marked area was Product Descripiton (that in fact corresponds to Short Description in Prestashop). There is no option to set the length for the Product Title in Themler, and it looks like Prestashop does not support this possibility either. I assume, that it is possible, to change the default minimum length by manual editing theme files. Sincerely, Nettie, BillionDigital Team
Alexander Dzhuninski
183 Posts
Alexander Dzhuninski posted this 16 February 2017

in which theme files please specify, we can change length for the product title ?

in which theme files please specify, we can change length for the product title ?
Support Team
Support Team posted this 17 February 2017

Hi,

There is producttitle_x.tpl file in the themes\ThemeName\includes\ folder. There are different product titles in this file. To change the length change truncate:14 parameter of the appropriate title.

Thank you,
Olivia

Hi, There is `producttitle_x.tpl` file in the `themes\ThemeName\includes\` folder. There are different product titles in this file. To change the length change `truncate:14` parameter of the appropriate title. Thank you, Olivia
Alexander Dzhuninski
183 Posts
Alexander Dzhuninski posted this 15 March 2018

How to change product title limit in products page charters in PrestaShop 1.7 ?

How to change product title limit in products page charters in PrestaShop 1.7 ?
Support Team
Support Team posted this 21 March 2018

Hi,

IN PS 1.7 themes the limit can be changed in the template file, for example: themes\ThemeName\includes\products_1.tpl

<div class=" bd-producttitle-8 bd-no-margins">
<a href="{$product.url}">{$product.name|truncate:30:'...'}</a>
</div>

Thank you,
Olivia

Hi, IN PS 1.7 themes the limit can be changed in the template file, for example: `themes\ThemeName\includes\products_1.tpl` `<div class=" bd-producttitle-8 bd-no-margins"> <a href="{$product.url}">{$product.name|truncate:30:'...'}</a> </div>` Thank you, Olivia
Alexander Dzhuninski
183 Posts
Alexander Dzhuninski posted this 22 March 2018

Hi Olivia, in this file do not exist this div class:
<div class>
<a href>{$product.name|truncate:30:'...'}</a>
</div>
Which you show me here, i will paste all content of our "products_1.tpl"

{assign var=product_overview_context value=true scope='global'}

{block name='head_seo' prepend}

<link rel="canonical" href="{$product.canonical_url}">

{/block}

{block name='head' append}

<meta property="og:type" content="product">
<meta property="og:url" content="{$urls.current_url}">
<meta property="og:title" content="{$page.meta.title}">
<meta property="og:site_name" content="{$shop.name}">
<meta property="og:description" content="{$page.meta.description}">
<meta property="og:image" content="{$product.cover.large.url}">
<meta property="product:pretax_price:amount" content="{$product.price_tax_exc}">
<meta property="product:pretax_price:currency" content="{$currency.iso_code}">
<meta property="product:price:amount" content="{$product.price_amount}">
<meta property="product:price:currency" content="{$currency.iso_code}">
{if isset($product.weight) && ($product.weight != 0)}
    <meta property="product:weight:value" content="{$product.weight}">
    <meta property="product:weight:units" content="{$product.weight_unit}">
{/if}

{/block}

{block name='page_content_container'}
{block name='content'}

<div class=" bd-productoverview " itemscope itemtype="https://schema.org/Product">
    <meta itemprop="url" content="{$product.url}">
    <div class=" bd-layoutcontainer-10 bd-columns bd-no-margins">
<div class="bd-container-inner">
    <div class="container-fluid">
        <div class="row ">
            <div class=" bd-columnwrapper-46 

col-md-6
col-sm-12
col-xs-12">

<div class="bd-layoutcolumn-46 bd-column" ><div class="bd-vertical-align-wrapper"><h2 class=" bd-productoverviewtitle-1 bd-no-margins">{block name='page_title'}{$product.name}{/block}</h2></div></div>



    <div class=" bd-columnwrapper-50 

col-md-6
col-sm-12
col-xs-12">

<div class="bd-layoutcolumn-50 bd-column" ><div class="bd-vertical-align-wrapper"></div></div>

        </div>
    </div>
</div>



    <div class=" bd-layoutcontainer-25 bd-columns bd-no-margins">
<div class="bd-container-inner">
    <div class="container-fluid">
        <div class="row ">
            <div class=" bd-columnwrapper-48 

col-md-6
col-sm-12
col-xs-12">

<div class="bd-layoutcolumn-48 bd-column" ><div class="bd-vertical-align-wrapper">{include file='./product_overview_image_6.tpl'}


    {include file='./product_thumbnails_1.tpl'}


    <div class=" bd-flexalign-1 bd-no-margins bd-flexalign">{if isset($product.flags.discount)}
<div class="bd-productreducedpriceicon-4  bd-productreducedprice-4 ">
    <span>{$product.flags.discount.label}</span>
</div>

{/if}

    <div class=" bd-columnwrapper-49 

col-md-6
col-sm-12
col-xs-12">

<div class="bd-layoutcolumn-49 bd-column" ><div class="bd-vertical-align-wrapper"><!-- Product rating. There are no official modules currently. -->


    {assign var=text_max_len value="80"}

{assign var=text_max_len value="80"}
{block name='product_description_short'}

<div class=" bd-productdesc-13" itemprop="description">
    {$product.description_short nofilter}
</div>

{/block}

    {include file='./product_variations_1.tpl'}


    <div class="bd-separator-7  bd-separator-center bd-separator-content-center clearfix" >
<div class="bd-container-inner">
    <div class="bd-separator-inner">


    </div>
</div>



    {include file='./product_price_5.tpl'}


    {include file='./product_add_to_cart_4.tpl'}</div></div>

        </div>
    </div>
</div>



    {block name='product_reviews'}

<div class>

<div class=" bd-productreviews-1">
    {hook h='displayProductListReviews' product=$product}
</div>

{/block}
<div class data-responsive>

<div class="bd-container-inner">
    {include file='./tab_information_header_2.tpl'}
    {include file='./tab_information_content_2.tpl'}
    <div class=" bd-accordion accordion">
<div class=" bd-menuitem-10 accordion-item"></div>
<div class=" bd-container-47 bd-tagstyles accordion-content"></div>

</div>


    {block name='product_accessories'}
        {if $accessories}
            {include file="../products-slider.tpl" slider_id="accessories_slider" products=$accessories link=$link title={l s='You might also like' d='Shop.Theme.Catalog'}}
        {/if}
    {/block}

    {block name='product_footer'}
      {hook h='displayFooterProduct' product=$product category=$category}
    {/block}

    {block name='product_images_modal'}
      {include file='catalog/_partials/product-images-modal.tpl'}
    {/block}

    {block name='page_footer_container'}
      <footer class="page-footer">
        {block name='page_footer'}
          <!-- Footer content -->
        {/block}
      </footer>
    {/block}


</div>

{/block}
{/block}

{assign var=product_overview_context value=false scope='global'}

Hi Olivia, in this file do not exist this div class: &lt;div class&gt; &lt;a href&gt;{$product.name|truncate:30:&#39;...&#39;}&lt;/a&gt; &lt;/div&gt; Which you show me here, i will paste all content of our "products_1.tpl" {assign var=product_overview_context value=true scope='global'} {block name='head_seo' prepend} <link rel="canonical" href="{$product.canonical_url}"> {/block} {block name='head' append} <meta property="og:type" content="product"> <meta property="og:url" content="{$urls.current_url}"> <meta property="og:title" content="{$page.meta.title}"> <meta property="og:site_name" content="{$shop.name}"> <meta property="og:description" content="{$page.meta.description}"> <meta property="og:image" content="{$product.cover.large.url}"> <meta property="product:pretax_price:amount" content="{$product.price_tax_exc}"> <meta property="product:pretax_price:currency" content="{$currency.iso_code}"> <meta property="product:price:amount" content="{$product.price_amount}"> <meta property="product:price:currency" content="{$currency.iso_code}"> {if isset($product.weight) && ($product.weight != 0)} <meta property="product:weight:value" content="{$product.weight}"> <meta property="product:weight:units" content="{$product.weight_unit}"> {/if} {/block} {block name='page_content_container'} {block name='content'} <div class=" bd-productoverview " itemscope itemtype="https://schema.org/Product"> <meta itemprop="url" content="{$product.url}"> <div class=" bd-layoutcontainer-10 bd-columns bd-no-margins"> <div class="bd-container-inner"> <div class="container-fluid"> <div class="row "> <div class=" bd-columnwrapper-46 col-md-6 col-sm-12 col-xs-12"> <div class="bd-layoutcolumn-46 bd-column" ><div class="bd-vertical-align-wrapper"><h2 class=" bd-productoverviewtitle-1 bd-no-margins">{block name='page_title'}{$product.name}{/block}</h2></div></div> <div class=" bd-columnwrapper-50 col-md-6 col-sm-12 col-xs-12"> <div class="bd-layoutcolumn-50 bd-column" ><div class="bd-vertical-align-wrapper"></div></div> </div> </div> </div> <div class=" bd-layoutcontainer-25 bd-columns bd-no-margins"> <div class="bd-container-inner"> <div class="container-fluid"> <div class="row "> <div class=" bd-columnwrapper-48 col-md-6 col-sm-12 col-xs-12"> <div class="bd-layoutcolumn-48 bd-column" ><div class="bd-vertical-align-wrapper">{include file='./product_overview_image_6.tpl'} {include file='./product_thumbnails_1.tpl'} <div class=" bd-flexalign-1 bd-no-margins bd-flexalign">{if isset($product.flags.discount)} <div class="bd-productreducedpriceicon-4 bd-productreducedprice-4 "> <span>{$product.flags.discount.label}</span> </div> {/if} <div class=" bd-columnwrapper-49 col-md-6 col-sm-12 col-xs-12"> <div class="bd-layoutcolumn-49 bd-column" ><div class="bd-vertical-align-wrapper"><!-- Product rating. There are no official modules currently. --> {assign var=text_max_len value="80"} {assign var=text_max_len value="80"} {block name='product_description_short'} <div class=" bd-productdesc-13" itemprop="description"> {$product.description_short nofilter} </div> {/block} {include file='./product_variations_1.tpl'} <div class="bd-separator-7 bd-separator-center bd-separator-content-center clearfix" > <div class="bd-container-inner"> <div class="bd-separator-inner"> </div> </div> {include file='./product_price_5.tpl'} {include file='./product_add_to_cart_4.tpl'}</div></div> </div> </div> </div> {block name='product_reviews'} &lt;div class&gt; <div class=" bd-productreviews-1"> {hook h='displayProductListReviews' product=$product} </div> {/block} &lt;div class data-responsive&gt; <div class="bd-container-inner"> {include file='./tab_information_header_2.tpl'} {include file='./tab_information_content_2.tpl'} <div class=" bd-accordion accordion"> <div class=" bd-menuitem-10 accordion-item"></div> <div class=" bd-container-47 bd-tagstyles accordion-content"></div> </div> {block name='product_accessories'} {if $accessories} {include file="../products-slider.tpl" slider_id="accessories_slider" products=$accessories link=$link title={l s='You might also like' d='Shop.Theme.Catalog'}} {/if} {/block} {block name='product_footer'} {hook h='displayFooterProduct' product=$product category=$category} {/block} {block name='product_images_modal'} {include file='catalog/_partials/product-images-modal.tpl'} {/block} {block name='page_footer_container'} <footer class="page-footer"> {block name='page_footer'} <!-- Footer content --> {/block} </footer> {/block} </div> {/block} {/block} {assign var=product_overview_context value=false scope='global'}
Support Team
Support Team posted this 22 March 2018

Hi,

Are you sure that this is template file like products_1.tpl? This is template for Products template. It looks like you provided a template of the Product Details template.

Thank you,
Olivia

Hi, Are you sure that this is template file like products_1.tpl? This is template for Products template. It looks like you provided a template of the Product Details template. Thank you, Olivia
Alexander Dzhuninski
183 Posts
Alexander Dzhuninski posted this 3 weeks ago

Here i send zipped file, but in that file i can't find that rows?

"<div class>
<a href>{$product.name|truncate:30:'...'}</a>
</div>"

Which you tell about it......?

Here i send zipped file, but in that file i can't find that rows? "&lt;div class&gt; &lt;a href&gt;{$product.name|truncate:30:&#39;...&#39;}&lt;/a&gt; &lt;/div&gt;" Which you tell about it......?

Last edited 3 weeks ago by Alexander Dzhuninski

Support Team
Support Team posted this 3 weeks ago

Hi,

This is Product Details template. But you asked:

How to change product title limit in products page charters in PrestaShop 1.7 ?

You need Products template, not Product template. Please search for the products file named as follows: products_1.tpl

Thank you,
Olivia

Hi, This is Product Details template. But you asked: > How to change product title limit in **products** page charters in PrestaShop 1.7 ? You need Products template, not Product template. Please search for the products file named as follows: products_1.tpl Thank you, Olivia
Alexander Dzhuninski
183 Posts
Alexander Dzhuninski posted this 3 weeks ago

Thanks, our mistake, now please...... how to extend charters in product sliders title?

Thanks, our mistake, now please...... how to extend charters in product sliders title?
Alexander Dzhuninski
183 Posts
Alexander Dzhuninski posted this 3 weeks ago

Some advice ?

Some advice ?
Support Team
Support Team posted this 2 weeks ago

Hi,

In this line
<a href>{$product.name|truncate:30:'...'}</a>
the number 30 means the number of characters. Simply use the desired number.

Thank you,
Olivia

Hi, In this line `<a href>{$product.name|truncate:30:'...'}</a>` the number `30` means the number of characters. Simply use the desired number. Thank you, Olivia
Alexander Dzhuninski
183 Posts
Alexander Dzhuninski posted this 2 weeks ago

Hi, Olivia :) Thanks for respond :)
Please, tell us....where we can find "In this line
<a href>{$product.name|truncate:30:'...'}</a>"...
in which file?

Hi, Olivia :) Thanks for respond :) Please, tell us....where we can find "In this line &lt;a href&gt;{$product.name|truncate:30:&#39;...&#39;}&lt;/a&gt;"... in which file?
Alexander Dzhuninski
183 Posts
Alexander Dzhuninski posted this 2 weeks ago

Some issue...?

Some issue...?
Support Team
Support Team posted this 2 days ago

Hi,

We already discussed it above. To change the title limits on the Products template you need the products template file like products_1.tpl.

Thank you,
Olivia

Hi, We already discussed it above. To change the title limits on the Products template you need the products template file like `products_1.tpl`. Thank you, Olivia
You must log in or register to leave comments