richard2011 Posted August 15, 2012 Share Posted August 15, 2012 I would like the general description above all categories to be able to have another one below them to add more information. If I add lots of info on top it pushes the categories too far down to be seen. is there a module for this. Using PS1.4 Richard Link to comment Share on other sites More sharing options...
shacker Posted August 19, 2012 Share Posted August 19, 2012 what is your site url to see this? Link to comment Share on other sites More sharing options...
shokinro Posted August 20, 2012 Share Posted August 20, 2012 If you want two descriptions for each category, you may been to add one more field to database and also need to extend the Category class, it might be not easy if you are not familiar on coding PrestaShop. here is one suggestion: You can use following two fields Meta Description, put it on the top of category Description, put in on the bottom of the category You can easy to do this by changing the category.tpl file 1. Move following code to the bottom of the file {if $category->description} <div class="cat_desc">{$category->description}</div> {/if} 2. And adding this code to the place where above code located before. {if $category->meta_description} <div class="cat_desc">{$category->meta_description}</div> {/if} 2 Link to comment Share on other sites More sharing options...
shacker Posted August 24, 2012 Share Posted August 24, 2012 If you want two descriptions for each category, you may been to add one more field to database and also need to extend the Category class, it might be not easy if you are not familiar on coding PrestaShop. here is one suggestion: You can use following two fields Meta Description, put it on the top of category Description, put in on the bottom of the category You can easy to do this by changing the category.tpl file 1. Move following code to the bottom of the file {if $category->description} <div class="cat_desc">{$category->description}</div> {/if} 2. And adding this code to the place where above code located before. {if $category->meta_description} <div class="cat_desc">{$category->meta_description}</div> {/if} really cool solution Link to comment Share on other sites More sharing options...
shokinro Posted August 24, 2012 Share Posted August 24, 2012 @shacker, thanks for your comment. Hope the owner of this thread like this solution and set this thread to SOLVED Link to comment Share on other sites More sharing options...
Allan - Fungadgets.dk Posted September 10, 2012 Share Posted September 10, 2012 Really a good solution!! I have been looking for somthing like this for a long time. Thank you shokinro Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 10, 2012 Share Posted September 10, 2012 Hello Allan, thank you for the message. I am happy that this solution worked for you as well. I will go ahead and mark this thread as SOLVED. Thank you for choosing PrestaShop! Link to comment Share on other sites More sharing options...
shokinro Posted September 10, 2012 Share Posted September 10, 2012 Alan, I am glad it helps. Thanks for feedback. Link to comment Share on other sites More sharing options...
mil0rd Posted June 6, 2013 Share Posted June 6, 2013 i appreciate your help folks, keep posting! Link to comment Share on other sites More sharing options...
shacker Posted June 7, 2013 Share Posted June 7, 2013 we try Link to comment Share on other sites More sharing options...
Spoh Posted June 17, 2013 Share Posted June 17, 2013 Great solution, thanks! Was just wondering though, when using the meta description for a short introductory text, doesnt it hurt your SEO then? I thought google was looking at the meta description to determine content and ranking etc. And then if its only a short text with not many keywords or anything it might cause SEO problems? Does anyone know anything about this? Help would be very much appreciated Link to comment Share on other sites More sharing options...
KimTheMan Posted April 26, 2014 Share Posted April 26, 2014 (Google tanslate) I bought a new theme. And there are {if $ category-> description} bar away.On the same lines is now {if $category->description} {if strlen($category->description) > 3000} <p class="cat_desc clearfix" id="category_description_short">{$category->description|truncate:480} <span onclick="$('#category_description_short').hide(); $('#category_description_full').show();" class="lnk_more_cat"><i class="icon-plus-sign"></i> {l s='More'}</span></p> <p class="cat_desc clearfix" id="category_description_full" style="display:none">{$category->description}<span onclick="$('#category_description_short').show(); $('#category_description_full').hide();" class="lnk_more_cat close_cat"><i class="icon-minus-sign"></i> {l s='Hide'}</span></p> {else} <p class="cat_desc clearfix">{$category->description}</p> {/if} Link to comment Share on other sites More sharing options...
KimTheMan Posted April 26, 2014 Share Posted April 26, 2014 I got it to succeed in a different way to get it to work Link to comment Share on other sites More sharing options...
vekia Posted April 26, 2014 Share Posted April 26, 2014 (Google tanslate) I bought a new theme. And there are {if $ category-> description} bar away.On the same lines is now {if $category->description} {if strlen($category->description) > 3000} <p class="cat_desc clearfix" id="category_description_short">{$category->description|truncate:480} <span onclick="$('#category_description_short').hide(); $('#category_description_full').show();" class="lnk_more_cat"><i class="icon-plus-sign"></i> {l s='More'}</span></p> <p class="cat_desc clearfix" id="category_description_full" style="display:none">{$category->description}<span onclick="$('#category_description_short').show(); $('#category_description_full').hide();" class="lnk_more_cat close_cat"><i class="icon-minus-sign"></i> {l s='Hide'}</span></p> {else} <p class="cat_desc clearfix">{$category->description}</p> {/if} hello and at the moment what you exactly expect? I got it to succeed in a different way to get it to work sorry my mistake i've noticed that you posted another answer here. where the problem was? Link to comment Share on other sites More sharing options...
Recommended Posts