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

#   Comments and votes for categories

##

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

Less More

- Posts: 85
- Thank you received: 9
-
-

6 years 7 months ago -  6 years 1 hour ago [\#316626](#316626) by [pagemaster](/forum/user/50033-pagemaster "View pagemaster's Profile")  *[Comments and votes for categories](/forum/42-vote/899348-comments-and-votes-for-categories#316626 "-- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.2.26  Hello,  is it possible to add comments and rating for categories?  Because me I have a website where I used a category for each restaurant, and each restaurant has the products that it sells. Me I want to permit to the customers to add comments and ratings for each restaurant.  Thank yoiu for you support")* was created by *[pagemaster](/forum/user/50033-pagemaster "View pagemaster's Profile")*

-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.16
-- PHP version -- : 7.2.26

Hello,

is it possible to add comments and rating for categories?

Because me I have a website where I used a category for each restaurant, and each restaurant has the products that it sells. Me I want to permit to the customers to add comments and ratings for each restaurant.

Thank yoiu for you support

Last edit: 6 years 1 hour ago by [pagemaster](/forum/user/50033-pagemaster "View pagemaster's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQyLXZvdGUvODk5MzQ4LWNvbW1lbnRzLWFuZC12b3Rlcy1mb3ItY2F0ZWdvcmllcz90bXBsPW1hcmtkb3du) or [Create an account](/register) 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: 86324
- Thank you received: 14286
-
-

6 years 7 months ago [\#316634](#316634) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Comments and votes for categories](/forum/42-vote/899348-comments-and-votes-for-categories#316634 "-- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.2.26  Hello,  is it possible to add comments and rating for categories?  Because me I have a website where I used a category for each restaurant, and each restaurant has the products that it sells. Me I want to permit to the customers to add comments and ratings for each restaurant.  Thank yoiu for you support")*

Hi,

There is no mechanism for that in HikaShop. You can only have comments and votes for products or for vendors, not categories.
Adding that would require coding that capability, which isn't something that can be done rapidely as the system wasn't made to support it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQyLXZvdGUvODk5MzQ4LWNvbW1lbnRzLWFuZC12b3Rlcy1mb3ItY2F0ZWdvcmllcz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 85
- Thank you received: 9
-
-

6 years 7 months ago [\#316697](#316697) by [pagemaster](/forum/user/50033-pagemaster "View pagemaster's Profile")  Replied by *[pagemaster](/forum/user/50033-pagemaster "View pagemaster's Profile")* on topic *[Comments and votes for categories](/forum/42-vote/899348-comments-and-votes-for-categories#316697 "-- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.2.26  Hello,  is it possible to add comments and rating for categories?  Because me I have a website where I used a category for each restaurant, and each restaurant has the products that it sells. Me I want to permit to the customers to add comments and ratings for each restaurant.  Thank yoiu for you support")*

Ok, thank you anyway. I try to bypass the problem with some code.

Best regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQyLXZvdGUvODk5MzQ4LWNvbW1lbnRzLWFuZC12b3Rlcy1mb3ItY2F0ZWdvcmllcz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 85
- Thank you received: 9
-
-

6 years 1 hour ago -  6 years 51 minutes ago [\#325467](#325467) by [pagemaster](/forum/user/50033-pagemaster "View pagemaster's Profile")  Replied by *[pagemaster](/forum/user/50033-pagemaster "View pagemaster's Profile")* on topic *[Comments and votes for categories](/forum/42-vote/899348-comments-and-votes-for-categories#325467 "-- HikaShop version -- : 4.2.3 -- Joomla version -- : 3.9.16 -- PHP version -- : 7.2.26  Hello,  is it possible to add comments and rating for categories?  Because me I have a website where I used a category for each restaurant, and each restaurant has the products that it sells. Me I want to permit to the customers to add comments and ratings for each restaurant.  Thank yoiu for you support")*

I solved with custom code. I added a button for each category that has a vendor with the same name of the category.

This is the code of the view **HikaShop - category / listing\_img\_title.php**:
Code:

&lt;?php // Get a db connection. $db = JFactory::getDbo(); // Create a new query object. $query = $db-&gt;getQuery(true); $query-&gt;select('vendor_id'); $query-&gt;from($db-&gt;quoteName('tbuonapp_hikamarket_vendor')); $query-&gt;where('vendor_name = ' . '"' . $this-&gt;row-&gt;category_name . '"'); // Reset the query using our newly populated query object. $db-&gt;setQuery($query); $idVendor = $db-&gt;loadResult(); // Get a db connection. $db = JFactory::getDbo(); // Create a new query object. $query = $db-&gt;getQuery(true); $query-&gt;select('vendor_alias'); $query-&gt;from($db-&gt;quoteName('tbuonapp_hikamarket_vendor')); $query-&gt;where('vendor_name = ' . '"' . $this-&gt;row-&gt;category_name . '"'); // Reset the query using our newly populated query object. $db-&gt;setQuery($query); $aliasVendor = $db-&gt;loadResult(); ?&gt; &lt;?php if($idVendor != null and $idVendor != ""){ ?&gt; &lt;br&gt;&lt;br&gt; &lt;div&gt; &lt;a class ='hikabtn hikawishlist' href='&lt;?php echo "https://www.buonapp.ch/voti-ristoranti/vendor/show/" . $idVendor . "-" . $aliasVendor; ?&gt;'&gt;&lt;span&gt;Vota ristorante&lt;/span&gt;&lt;/a&gt; &lt;/div&gt; &lt;?php } ?&gt;

Last edit: 6 years 51 minutes ago by [pagemaster](/forum/user/50033-pagemaster "View pagemaster's Profile").

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQyLXZvdGUvODk5MzQ4LWNvbW1lbnRzLWFuZC12b3Rlcy1mb3ItY2F0ZWdvcmllcz90bXBsPW1hcmtkb3du) or [Create an account](/register) 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.063 seconds

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