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

#   Adding category description to product description

##

- **[yossib54](/forum/user/386-yossib54 "View yossib54's Profile")**
- [![yossib54's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar386.jpg)](/forum/user/386-yossib54 "View yossib54's Profile") Topic Author
- [ Offline](/forum/user/386-yossib54)

Less More

- Posts: 32
- Thank you received: 0
-
-

15 years 9 months ago [\#4204](#4204) by [yossib54](/forum/user/386-yossib54 "View yossib54's Profile")  *[Adding category description to product description](/forum/4-how-to/4204-adding-category-description-to-product-description#4204 "How can I add the category description just before the product description on the product view  Thanks")* was created by *[yossib54](/forum/user/386-yossib54 "View yossib54's Profile")*

How can I add the category description just before the product description on the product view

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMDQtYWRkaW5nLWNhdGVnb3J5LWRlc2NyaXB0aW9uLXRvLXByb2R1Y3QtZGVzY3JpcHRpb24/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: 86284
- Thank you received: 14263
-
-

15 years 9 months ago [\#4208](#4208) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding category description to product description](/forum/4-how-to/4204-adding-category-description-to-product-description#4208 "How can I add the category description just before the product description on the product view  Thanks")*

You can have several categories for one product.
So you will have to edit the show file of the product view and load the category data with a MySQL query.

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

- **[yossib54](/forum/user/386-yossib54 "View yossib54's Profile")**
- [![yossib54's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar386.jpg)](/forum/user/386-yossib54 "View yossib54's Profile") Topic Author
- [ Offline](/forum/user/386-yossib54)

Less More

- Posts: 32
- Thank you received: 0
-
-

15 years 9 months ago [\#4345](#4345) by [yossib54](/forum/user/386-yossib54 "View yossib54's Profile")  Replied by *[yossib54](/forum/user/386-yossib54 "View yossib54's Profile")* on topic *[Re: Adding category description to product description](/forum/4-how-to/4204-adding-category-description-to-product-description#4345 "How can I add the category description just before the product description on the product view  Thanks")*

Thanks, it worked...

I assume that these modifications are not overwritten when installing a new version of Hikashop correct?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMDQtYWRkaW5nLWNhdGVnb3J5LWRlc2NyaXB0aW9uLXRvLXByb2R1Y3QtZGVzY3JpcHRpb24/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: 86284
- Thank you received: 14263
-
-

15 years 9 months ago [\#4350](#4350) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding category description to product description](/forum/4-how-to/4204-adding-category-description-to-product-description#4350 "How can I add the category description just before the product description on the product view  Thanks")*

If you do your modifications with our interface in Display-&gt;Views, they won't be overwritten as we use the MVC standard of joomla and save your modifications in your template.

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

- **[yossib54](/forum/user/386-yossib54 "View yossib54's Profile")**
- [![yossib54's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar386.jpg)](/forum/user/386-yossib54 "View yossib54's Profile") Topic Author
- [ Offline](/forum/user/386-yossib54)

Less More

- Posts: 32
- Thank you received: 0
-
-

15 years 9 months ago [\#4359](#4359) by [yossib54](/forum/user/386-yossib54 "View yossib54's Profile")  Replied by *[yossib54](/forum/user/386-yossib54 "View yossib54's Profile")* on topic *[Re: Adding category description to product description](/forum/4-how-to/4204-adding-category-description-to-product-description#4359 "How can I add the category description just before the product description on the product view  Thanks")*

Thanks this is what I did, I also noticed that there is an icon to undo view changes.

Two more questions:
What is the best way to modify the frontend_default.css file?
I needed to move the hikashop_checkout_status and hikashop_checkout_terms so that they appear on top of the next button nad not on the far left as they do now. I could not find where these are defined

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMDQtYWRkaW5nLWNhdGVnb3J5LWRlc2NyaXB0aW9uLXRvLXByb2R1Y3QtZGVzY3JpcHRpb24/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: 86284
- Thank you received: 14263
-
-

15 years 9 months ago [\#4361](#4361) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding category description to product description](/forum/4-how-to/4204-adding-category-description-to-product-description#4361 "How can I add the category description just before the product description on the product view  Thanks")*

The best way to edit the hikashop CSS is to do it via the interface we have for that in the config under the tab display in the CSS area. That way, you won't loose your modifications when you update in the same way as with views modifications.

Not all the classes are defined in the CSS. That's because we only defined the CSS classes that needed some styling by default. So if you don't have any code for a class in the CSS you can just add it. Either in our CSS, or in your template.

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

- **[yossib54](/forum/user/386-yossib54 "View yossib54's Profile")**
- [![yossib54's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar386.jpg)](/forum/user/386-yossib54 "View yossib54's Profile") Topic Author
- [ Offline](/forum/user/386-yossib54)

Less More

- Posts: 32
- Thank you received: 0
-
-

15 years 9 months ago [\#4362](#4362) by [yossib54](/forum/user/386-yossib54 "View yossib54's Profile")  Replied by *[yossib54](/forum/user/386-yossib54 "View yossib54's Profile")* on topic *[Re: Adding category description to product description](/forum/4-how-to/4204-adding-category-description-to-product-description#4362 "How can I add the category description just before the product description on the product view  Thanks")*

Thank you, somehow I missed the edit css thing in the config screen

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

- **[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")**
- [![MSTACE's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-07-05.jpeg)](/forum/user/7448-mstace "View MSTACE's Profile")
- [ Offline](/forum/user/7448-mstace)

Less More

- Posts: 301
- Thank you received: 11
-
-

14 years 1 month ago -  14 years 1 month ago [\#63404](#63404) by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")  Replied by *[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")* on topic *[Re: Adding category description to product description](/forum/4-how-to/4204-adding-category-description-to-product-description#63404 "How can I add the category description just before the product description on the product view  Thanks")*

> nicolas wrote: You can have several categories for one product.
> So you will have to edit the show file of the product view and load the category data with a MySQL query.

Please explain.

Also why doesn't the basic Description area of the Categories show?
They seem to before:
[ www.hikashop.com/en/forum/4-how-to/51821...scription.html#51821](http://www.hikashop.com/en/forum/4-how-to/51821-add-a-category-description.html#51821)

Thanks.

Last edit: 14 years 1 month ago by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMDQtYWRkaW5nLWNhdGVnb3J5LWRlc2NyaXB0aW9uLXRvLXByb2R1Y3QtZGVzY3JpcHRpb24/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: 86284
- Thank you received: 14263
-
-

14 years 1 month ago [\#63559](#63559) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding category description to product description](/forum/4-how-to/4204-adding-category-description-to-product-description#63559 "How can I add the category description just before the product description on the product view  Thanks")*

This thread is about adding the category description on the product page. As I explained, it requires custom code. Something like this should do:
&lt;?php
foreach($this-&gt;categories as $category) echo $category-&gt;category_description;
?&gt;

The other thread is about adding the description of the current category on the products/subcategories listing page. That can be done by turning on the "show description" option of your menu via the menu Display-&gt;Content menus.

The following user(s) said Thank You: [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")

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

- **[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")**
- [![MSTACE's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-07-05.jpeg)](/forum/user/7448-mstace "View MSTACE's Profile")
- [ Offline](/forum/user/7448-mstace)

Less More

- Posts: 301
- Thank you received: 11
-
-

14 years 1 month ago [\#63598](#63598) by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")  Replied by *[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")* on topic *[Re: Adding category description to product description](/forum/4-how-to/4204-adding-category-description-to-product-description#63598 "How can I add the category description just before the product description on the product view  Thanks")*

That was on but the description was not showing.

Today the description is now showing.
Huh??

I don't have any caching on...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMDQtYWRkaW5nLWNhdGVnb3J5LWRlc2NyaXB0aW9uLXRvLXByb2R1Y3QtZGVzY3JpcHRpb24/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.312 seconds

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

[](#top)
