Jump to content
Online Office USA

[SOLVED] Increase Truncate in Short Description

Recommended Posts

Hello. I'm using the Prestashop_new theme and want to increase the short description but cannot locate the truncate that I need to change. When I entered my short description in the BO it threw an error I had exceeded the allotted 400 character. I looked in products_list.tpl and the truncate number there is 220. Where do I find the truncate to adjust? I've looked in what I thought was the right file(s) but no luck.

 

I thought I had seen a post that addressed this issue but can't seem to locate that either.

 

Thanks

Share this post


Link to post
Share on other sites
Hello. I'm using the Prestashop_new theme and want to increase the short description but cannot locate the truncate that I need to change. When I entered my short description in the BO it threw an error I had exceeded the allotted 400 character. I looked in products_list.tpl and the truncate number there is 220. Where do I find the truncate to adjust? I've looked in what I thought was the right file(s) but no luck. I thought I had seen a post that addressed this issue but can't seem to locate that either. Thanks

 

to set up max size of the Short description in BO:

 

Preferences -> Products -> Short description max size

 

Then you must change short description's truncate size in tpl files and change them:

 

product-list.tpl

product.tpl

  • Like 1

Share this post


Link to post
Share on other sites

 

to set up max size of the Short description in BO:

 

Preferences -> Products -> Short description max size

 

Then you must change short description's truncate size in tpl files and change them:

 

product-list.tpl

product.tpl

 

Outstanding! Thank you!

Share this post


Link to post
Share on other sites

Just another question.

I've got in my Presta product link in category-list like this one:

Naklejka dekoracyjna wzór 1 | Naklejki dekoracyjne lub szablony

 

Product link (product name) code is:

 

<h5><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|truncate:20:'...'|escape:'htmlall':'UTF-8'}</a></h5>

 

This, what I try to do is showing name of the product - but only name text before "|"

How can I solve, cut this name?

Share this post


Link to post
Share on other sites

 

to set up max size of the Short description in BO:

 

Preferences -> Products -> Short description max size

 

Then you must change short description's truncate size in tpl files and change them:

 

product-list.tpl

product.tpl

 

 

Could you tell me where to find product-list.tpl and product.tpl? ty

Share this post


Link to post
Share on other sites

Could you tell me where to find product-list.tpl and product.tpl? ty

 

Both files are in themes/your_theme_name/ folder

Share this post


Link to post
Share on other sites

How do you do this in PS 1.6.0.9 - standard theme.

 

I have changed then truncate length in product-list.tbl, but this does not help.

 

Jan

Share this post


Link to post
Share on other sites

How do you do this in PS 1.6.0.9 - standard theme.

 

I have changed then truncate length in product-list.tbl, but this does not help.

 

Jan

Then did you change in BO too?

 

2014-09-13_2018.png

Share this post


Link to post
Share on other sites

I'm using v1.6.1.17 and regardless of what value I enter into the BO, Preferences > Products > Max size of short description, it only displays up to 400 on my product pages.

I've adjusted in BO as per image and both files to reflect new value (950). Nothing changes.

product-list.tpl

product.tpl

I even went into PHPmYAdmin and adjusted ps_product > Columns > reference to reflect the same value of 950.

Still product page only displays max 400 characters.

I've turned off Cache, Force compilation and Clear Cache.. Also, I've cleared my browser cache and even accessed via different machine/browser; no prevail.

Any suggestions on how to adjust my short description character count to 950?

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More