Jump to content

anyone can help me : how to change the items under products catalog "short description" max words?


Recommended Posts

anyone can help me : how to change the items under products catalog "short description" max words? for example: the max word the of an item under catalog is 400 words , how can I change it to like 700 words, thanks.

Link to comment
Share on other sites

If you are talking about on the product page, go into your template file called product.tpl look for this line, it should be around 450

 

<a href="{$accessoryLink|escape:'htmlall':'UTF-8'}" title="{l s='More'}" class="product_description">{$accessory.description_short|strip_tags|truncate:70:'...'}</a>

 

And change the 70 to what ever you want it to be. That is how many characters it shows up.

Link to comment
Share on other sites

anyone can help me : how to change the items under products catalog "short description" max words? for example: the max word the of an item under catalog is 400 words , how can I change it to like 700 words, thanks.

I know somewhere I can change the max words of the short description from 400 to any number, but I don't know where I can find it in the backoffice, is anyone can tell me , thanks lot!

Link to comment
Share on other sites

I think its funny that you blew my first answer off. But it is even funnier that you are asking again. To do it on the catalog, you need line 35 of the products-list.tpl change the 360 to what ever you want it to be.

Link to comment
Share on other sites

I feel really sorry for that, and also I am not a smart person with computer, so I am a little bit confuse for you answer. do you mean "To do it on the catalog, you need line 35 of the products-list.tpl" , the "products-list.tpl" this file under my host server , because I cannot find it in the backoffice, thanks again.

Link to comment
Share on other sites

thanks, I change two 360 to 2000, but at backoffice I got this error:error2.png

1 error

  • this field description_short (English (English)) is too long : 400 chars max (count now 420)

 

thanks, I change two 360 to 2000, but at backoffice I got this error:error2.png

1 error

  • this field description_short (English (English)) is too long : 400 chars max (count now 420)

Link to comment
Share on other sites

First set the 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 you must change both files.

Both files are in the same location.

 

product-list.tpl

product.tpl

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