zybxtv Posted March 22, 2012 Share Posted March 22, 2012 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 More sharing options...
Dh42 Posted March 22, 2012 Share Posted March 22, 2012 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 More sharing options...
zybxtv Posted March 22, 2012 Author Share Posted March 22, 2012 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 More sharing options...
zybxtv Posted March 23, 2012 Author Share Posted March 23, 2012 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 More sharing options...
Dh42 Posted March 23, 2012 Share Posted March 23, 2012 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 More sharing options...
tdr170 Posted March 23, 2012 Share Posted March 23, 2012 Also try searching the forum before asking a question this has been asked and answered many times. Link to comment Share on other sites More sharing options...
zybxtv Posted March 23, 2012 Author Share Posted March 23, 2012 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 More sharing options...
zybxtv Posted March 23, 2012 Author Share Posted March 23, 2012 can you tell me where the "products-list.tpl" , this file locate, thank you very much! Link to comment Share on other sites More sharing options...
tdr170 Posted March 23, 2012 Share Posted March 23, 2012 You can find the file in your ...themes/prestashop folder. Link to comment Share on other sites More sharing options...
zybxtv Posted March 23, 2012 Author Share Posted March 23, 2012 thanks, I change two 360 to 2000, but at backoffice I got this error: 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: 1 error this field description_short (English (English)) is too long : 400 chars max (count now 420) Link to comment Share on other sites More sharing options...
tdr170 Posted March 23, 2012 Share Posted March 23, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now