[Skip to main content](#vessel-content)

#   Show Category Description in Grouped by Category view

##

- **[tcws](/forum/user/32322-tcws "View tcws's Profile")**
- [![tcws's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32322-tcws "View tcws's Profile") Topic Author
- [ Offline](/forum/user/32322-tcws)

Less More

- Posts: 7
- Thank you received: 0
-
-

9 years 7 months ago [\#265041](#265041) by [tcws](/forum/user/32322-tcws "View tcws's Profile")  *[Show Category Description in Grouped by Category view](/forum/26-product-category-display/889359-show-category-description-in-grouped-by-category-view#265041 "Hi Hikashop I've had a request from my client and need assistance. Can you let me know how to include the Category description in the Grouped by Category page view. This would be to add the category description to each displayed category and addtionally I need to move it under the list of products. This is from a menu item 'Hikashop Category Listing'. I have attached a screenshot of your demo view for Grouped by Category and our development site which is currently on localhost. I've indicated where I'm trying attempting to get the Category Description to display. Many thanks for your help.")* was created by *[tcws](/forum/user/32322-tcws "View tcws's Profile")*

Hi Hikashop
I've had a request from my client and need assistance. Can you let me know how to include the Category description in the Grouped by Category page view. This would be to add the category description to each displayed category and addtionally I need to move it under the list of products. This is from a menu item 'Hikashop Category Listing'. I have attached a screenshot of your demo view for Grouped by Category and our development site which is currently on localhost. I've indicated where I'm trying attempting to get the Category Description to display.
Many thanks for your help.

- [ ![category-description-grouped-by-category.jpg](/forum/attachment/37028) ](/forum/attachment/37028 "...y-category.jpg") [ ](/forum/attachment/37028?download=1 "...y-category.jpg")
- [ ![ScreenShot2017-03-15at09.54.06.png](/forum/attachment/37029) ](/forum/attachment/37029 "...at09.54.06.png") [ ](/forum/attachment/37029?download=1 "...at09.54.06.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODkzNTktc2hvdy1jYXRlZ29yeS1kZXNjcmlwdGlvbi1pbi1ncm91cGVkLWJ5LWNhdGVnb3J5LXZpZXc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tcws](/forum/user/32322-tcws "View tcws's Profile")**
- [![tcws's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32322-tcws "View tcws's Profile") Topic Author
- [ Offline](/forum/user/32322-tcws)

Less More

- Posts: 7
- Thank you received: 0
-
-

9 years 7 months ago [\#265091](#265091) by [tcws](/forum/user/32322-tcws "View tcws's Profile")  Replied by *[tcws](/forum/user/32322-tcws "View tcws's Profile")* on topic *[Show Category Description in Grouped by Category view](/forum/26-product-category-display/889359-show-category-description-in-grouped-by-category-view#265091 "Hi Hikashop I've had a request from my client and need assistance. Can you let me know how to include the Category description in the Grouped by Category page view. This would be to add the category description to each displayed category and addtionally I need to move it under the list of products. This is from a menu item 'Hikashop Category Listing'. I have attached a screenshot of your demo view for Grouped by Category and our development site which is currently on localhost. I've indicated where I'm trying attempting to get the Category Description to display. Many thanks for your help.")*

Hi Hikashop, apologies  [ ![ScreenShot2017-03-15at13.26.59.png](/forum/attachment/37039) ](/forum/attachment/37039 "...at13.26.59.png")

the menu item is actually a 'Hikashop Product Listing' menu, not a 'Hikashop Category Listing. Displayed as Grouped by Category.

- [ ![ScreenShot2017-03-15at13.26.59.png](/forum/attachment/37039) ](/forum/attachment/37039 "...at13.26.59.png") [ ](/forum/attachment/37039?download=1 "...at13.26.59.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODkzNTktc2hvdy1jYXRlZ29yeS1kZXNjcmlwdGlvbi1pbi1ncm91cGVkLWJ5LWNhdGVnb3J5LXZpZXc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tcws](/forum/user/32322-tcws "View tcws's Profile")**
- [![tcws's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32322-tcws "View tcws's Profile") Topic Author
- [ Offline](/forum/user/32322-tcws)

Less More

- Posts: 7
- Thank you received: 0
-
-

9 years 7 months ago [\#265097](#265097) by [tcws](/forum/user/32322-tcws "View tcws's Profile")  Replied by *[tcws](/forum/user/32322-tcws "View tcws's Profile")* on topic *[Show Category Description in Grouped by Category view](/forum/26-product-category-display/889359-show-category-description-in-grouped-by-category-view#265097 "Hi Hikashop I've had a request from my client and need assistance. Can you let me know how to include the Category description in the Grouped by Category page view. This would be to add the category description to each displayed category and addtionally I need to move it under the list of products. This is from a menu item 'Hikashop Category Listing'. I have attached a screenshot of your demo view for Grouped by Category and our development site which is currently on localhost. I've indicated where I'm trying attempting to get the Category Description to display. Many thanks for your help.")*

Hi Hikashop
I've managed to get half way. I managed to move the category description on the main product listing, I've attached a screen shot (Screen Shot 2017-03-15 at 14.07.25).
I used the same coding in the Display &gt; View &gt; template &gt; product &gt; listing, this has worked, but it's missing the content. You can see in the second screenshot (Screen Shot 2017-03-15 at 14.07.06) that the category description div class is there, but not the content.
But I'm now struggling to see what it is I'm missing or need to adjust.

- [ ![ScreenShot2017-03-15at14.07.25.png](/forum/attachment/37041) ](/forum/attachment/37041 "...at14.07.25.png") [ ](/forum/attachment/37041?download=1 "...at14.07.25.png")
- [ ![ScreenShot2017-03-15at14.07.06&#95;2017-03-15.png](/forum/attachment/37042) ](/forum/attachment/37042 "...2017-03-15.png") [ ](/forum/attachment/37042?download=1 "...2017-03-15.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODkzNTktc2hvdy1jYXRlZ29yeS1kZXNjcmlwdGlvbi1pbi1ncm91cGVkLWJ5LWNhdGVnb3J5LXZpZXc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tcws](/forum/user/32322-tcws "View tcws's Profile")**
- [![tcws's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32322-tcws "View tcws's Profile") Topic Author
- [ Offline](/forum/user/32322-tcws)

Less More

- Posts: 7
- Thank you received: 0
-
-

9 years 7 months ago [\#265098](#265098) by [tcws](/forum/user/32322-tcws "View tcws's Profile")  Replied by *[tcws](/forum/user/32322-tcws "View tcws's Profile")* on topic *[Show Category Description in Grouped by Category view](/forum/26-product-category-display/889359-show-category-description-in-grouped-by-category-view#265098 "Hi Hikashop I've had a request from my client and need assistance. Can you let me know how to include the Category description in the Grouped by Category page view. This would be to add the category description to each displayed category and addtionally I need to move it under the list of products. This is from a menu item 'Hikashop Category Listing'. I have attached a screenshot of your demo view for Grouped by Category and our development site which is currently on localhost. I've indicated where I'm trying attempting to get the Category Description to display. Many thanks for your help.")*

This is the coding I've added to Display &gt; View &gt; template &gt; product &gt; listing.

&lt;div class="hikashop_category_description"&gt;
&lt;?php
if($this-&gt;params-&gt;get('show_image') &amp;&amp; !empty($this-&gt;element-&gt;file_path)){
jimport('joomla.filesystem.file');
if(JFile::exists($this-&gt;image-&gt;getPath($this-&gt;element-&gt;file_path,false))){
?&gt;
&lt;img src="&lt;?php echo $this-&gt;image-&gt;getPath($this-&gt;element-&gt;file_path); ?&gt;" class="hikashop_category_image" title="&lt;?php echo $this-&gt;escape(@$this-&gt;element-&gt;file_description); ?&gt;" alt="&lt;?php echo $this-&gt;escape(@$this-&gt;element-&gt;file_name); ?&gt;"/&gt;
&lt;?php
}
}
if($this-&gt;params-&gt;get('show_description',1)&amp;&amp;!empty($this-&gt;element-&gt;category_description)){
?&gt;
&lt;div class="hikashop_category_description_content"&gt;
&lt;?php echo JHTML::_('content.prepare',$this-&gt;element-&gt;category_description); ?&gt;
&lt;/div&gt;
&lt;?php
}
?&gt;
&lt;/div&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODkzNTktc2hvdy1jYXRlZ29yeS1kZXNjcmlwdGlvbi1pbi1ncm91cGVkLWJ5LWNhdGVnb3J5LXZpZXc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14269
-
-

9 years 7 months ago [\#265046](#265046) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Show Category Description in Grouped by Category view](/forum/26-product-category-display/889359-show-category-description-in-grouped-by-category-view#265046 "Hi Hikashop I've had a request from my client and need assistance. Can you let me know how to include the Category description in the Grouped by Category page view. This would be to add the category description to each displayed category and addtionally I need to move it under the list of products. This is from a menu item 'Hikashop Category Listing'. I have attached a screenshot of your demo view for Grouped by Category and our development site which is currently on localhost. I've indicated where I'm trying attempting to get the Category Description to display. Many thanks for your help.")*

Hi,

You can add the code: Code:

&lt;?php echo $category['category']-&gt;category_description; ?&gt;

Before the code: Code:

&lt;/div&gt; &lt;?php } } $this-&gt;params-&gt;set('main_div_name', $main_div_name); $this-&gt;config-&gt;set('pagination', $pagination);

in the file "listing" of the view "product" for your frontend template via the menu Display&gt;Views.
[ www.hikashop.com/support/documentation/1...-display.html#layout](https://www.hikashop.com/support/documentation/153-customize-the-display.html#layout)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODkzNTktc2hvdy1jYXRlZ29yeS1kZXNjcmlwdGlvbi1pbi1ncm91cGVkLWJ5LWNhdGVnb3J5LXZpZXc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tcws](/forum/user/32322-tcws "View tcws's Profile")**
- [![tcws's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32322-tcws "View tcws's Profile") Topic Author
- [ Offline](/forum/user/32322-tcws)

Less More

- Posts: 7
- Thank you received: 0
-
-

9 years 7 months ago [\#265149](#265149) by [tcws](/forum/user/32322-tcws "View tcws's Profile")  Replied by *[tcws](/forum/user/32322-tcws "View tcws's Profile")* on topic *[Show Category Description in Grouped by Category view](/forum/26-product-category-display/889359-show-category-description-in-grouped-by-category-view#265149 "Hi Hikashop I've had a request from my client and need assistance. Can you let me know how to include the Category description in the Grouped by Category page view. This would be to add the category description to each displayed category and addtionally I need to move it under the list of products. This is from a menu item 'Hikashop Category Listing'. I have attached a screenshot of your demo view for Grouped by Category and our development site which is currently on localhost. I've indicated where I'm trying attempting to get the Category Description to display. Many thanks for your help.")*

Thanks Nicolas, that worked perfectly.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODkzNTktc2hvdy1jYXRlZ29yeS1kZXNjcmlwdGlvbi1pbi1ncm91cGVkLWJ5LWNhdGVnb3J5LXZpZXc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.251 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
