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

#   How to show comment &amp; vote in category page?

##

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

Less More

- Posts: 6
- Thank you received: 0
-

10 years 8 months ago [\#232502](#232502) by [::REZA::](/forum/user/40414-reza "View ::REZA::'s Profile")  *[How to show comment &amp; vote in category page?](/forum/4-how-to/882885-how-to-show-comment-vote-in-category-page#232502 "-- HikaShop version -- : 2.6.0  Hi  I have a category page, showing the products in the category. Since I disabled &quot;Link to the product page&quot; from configuration and there is no product page, I decided to show comment on category page. But when I took a little look at configuration and database I noticed that comment system is only available in product page and for a single product, not category of products. But there a &quot;vote&#95;type&quot; field in #&#95;&#95;hikashop&#95;vote table which can be 'category' instead of 'product'. (correct me if I'm wrong)  So, How to do that? is it possible to use default Hikashop system (or jcomments) to show comment &amp; vote form for a category with little changes, or do I have to use a custom component to make it happen?  Thanks in advance.")* was created by *[::REZA::](/forum/user/40414-reza "View ::REZA::'s Profile")*

-- HikaShop version -- : 2.6.0

Hi

I have a category page, showing the products in the category. Since I disabled "Link to the product page" from configuration and there is no product page, I decided to show comment on category page. But when I took a little look at configuration and database I noticed that comment system is only available in product page and for a single product, not category of products. But there a "vote_type" field in #__hikashop_vote table which can be 'category' instead of 'product'. (correct me if I'm wrong)

So, How to do that? is it possible to use default Hikashop system (or jcomments) to show comment &amp; vote form for a category with little changes, or do I have to use a custom component to make it happen?

Thanks in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg4Mjg4NS1ob3ctdG8tc2hvdy1jb21tZW50LXZvdGUtaW4tY2F0ZWdvcnktcGFnZT90bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86364
- Thank you received: 14297
-
-

10 years 8 months ago [\#232510](#232510) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to show comment &amp; vote in category page?](/forum/4-how-to/882885-how-to-show-comment-vote-in-category-page#232510 "-- HikaShop version -- : 2.6.0  Hi  I have a category page, showing the products in the category. Since I disabled &quot;Link to the product page&quot; from configuration and there is no product page, I decided to show comment on category page. But when I took a little look at configuration and database I noticed that comment system is only available in product page and for a single product, not category of products. But there a &quot;vote&#95;type&quot; field in #&#95;&#95;hikashop&#95;vote table which can be 'category' instead of 'product'. (correct me if I'm wrong)  So, How to do that? is it possible to use default Hikashop system (or jcomments) to show comment &amp; vote form for a category with little changes, or do I have to use a custom component to make it happen?  Thanks in advance.")*

Hi,

The comment system isn't meant to be used on the listings.
The vote_type is used to allow votes on vendors, not categories, at least for now.
So it's not easy to add that to the categories. It's not impossible, but it requires a developer to work on that.

Adding jcomments on the listings should be easy on the other hand.
You can add such code: Code:

&lt;?php $comments = HIKASHOP_ROOT . 'components' . DS . 'com_jcomments' . DS . 'jcomments.php'; require_once ($comments); echo JComments::showComments($this-&gt;element-&gt;category_id, 'com_hikashop', $this-&gt;element-&gt;category_name); ?&gt;

in the file "listing" of the view "product" via the menu Display&gt;Views and that should do it.

The following user(s) said Thank You: [::REZA::](/forum/user/40414-reza "View ::REZA::'s Profile")

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

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