Hi,
I simply want to display the category description somewhere on the product details page.
Any idea how to do that?
Thanks
From an SEO perspective not sure you'd want to do that… Duplicate content…
[quote name='CarStickersDecals' timestamp='1419773761' post='201115']
From an SEO perspective not sure you'd want to do that… Duplicate content…
[/quote]
Thanks for your comments but I'm not sure what that has to do with SEO. I'm not SEO expert but I really need a way to display category description on the product details page.
By description, I don't mean the META description, I mean the description that you fill in the rich-text editor of the backend.
Thanks
You can put somewhere on the page the following code. You can also use HTML block with Smarty support
{if $product.main_category}
{$category_data = $product.main_category|fn_get_category_data}
{if $category_data.description}
{/if}
{/if}
[quote name=‘eComLabs’ timestamp=‘1419842484’ post=‘201190’]
You can put somewhere on the page the following code. You can also use HTML block with Smarty support
<br />
{if $product.main_category}<br />
{$category_data = $product.main_category|fn_get_category_data}<br />
{if $category_data.description}<br />
<div class="ty-wysiwyg-content ty-mb-s">{$category_data.description nofilter}</div><br />
{/if}<br />
{/if}<br />
```<br />
[/quote]<br />
<br />
It works perfectly. Thank you so much and happy new year <img src="upload://rA9Qa8gnUPZzRZRdI8kt3dpjkrs.png" class="bbc_emoticon" alt=":)">
[quote name=‘ikramy’ timestamp=‘1420035162’ post=‘201394’]
It works perfectly. Thank you so much and happy new year
[/quote]
You are welcome!