HikaShop - Product reviews / product comments

  • Posts: 73
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
2 weeks 6 days ago #371854

-- HikaShop version -- : 6.4.1
-- Joomla version -- : 5.4.3

Hello,

I'm testing product reviews/ratings, but I'm not getting the expected results. If a user buys a product, I expect them to be able to leave a comment about it. It's currently configured so that only users who have purchased the product can comment.

The testing flow is as follows:

Test 1

* A user places an order
* After that, the user tries to comment on the purchased product
* Error message: "you must be registered to comment on a product"

Test 2

* A user places an order
* The vendor changes the order status to "delivered"
* The buyer user tries to comment on the purchased product
* Error message: "you must be registered to comment on a product"

I am sharing the HikaShop configuration for comments / ratings with you.

Thank you!

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 85681
  • Thank you received: 14041
  • MODERATOR
2 weeks 5 days ago #371855

Hello,

We think the error you saw was because guest customers do not have a Joomla account.

We just published a new HikaShop release with a fix for this. The "Bought" review access mode now also accepts the order_token URL parameter as proof of purchase, so guest customers can leave a verified-purchaser review by following the product link from their order confirmation email, the order status emails, the My Orders page on the front-end.

Please Log in or Create an account to join the conversation.

  • Posts: 73
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
2 weeks 2 days ago #371904

Hello

I installed the new version of Hikashop and I still can't post comments or vote on a product.

The user I'm using for testing is registered in Joomla, the session is logged in, the user purchased the product, and the order was confirmed by the seller.

Whether I vote or write a comment, it generates a JavaScript error, visible in the browser console, caused by a 500 error received from the backend. You can see it in the screenshots I'm sharing.

Thanks!

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 85681
  • Thank you received: 14041
  • MODERATOR
2 weeks 2 days ago #371906

Hi,

Thanks for the extra details, that was enough to reproduce on our side. The 500 was a regression from the guest reviews via order token fix we shipped earlier: the controller attaches an order_token and an order_id to the vote object so the guest authentication path can read them, but those two fields stayed on the object all the way to the INSERT statement, which tried to write them as columns of the votes table. The votes table has neither column, so MySQL rejected the insert with an "Unknown column" error and the AJAX call came back as HTTP 500. It affected both registered customers and guest customers because the two extra fields were always attached, not only on the guest path.

We just published a new HikaShop 6.4.1 build with the fix. The two fields are now stripped from the vote object right before the save. Please download the latest build from your member area and reinstall it on top of your current install; the review submission flow should work again immediately, both for your registered test user and for guests reviewing through the order email links.

Please Log in or Create an account to join the conversation.

  • Posts: 73
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
1 week 6 days ago #371935

Hello

I installed the new build of version 6.4.1 and I'm still having problems. Votes !are being sent correctly, but comments are still returning a 500 error on the front end and the comment list isn't updating. However, they can now be seen in the Hikashop admin panel and if I refresh the front end, the new comment appears.

I've attached screenshots from both the front end and the admin panel.

Regards

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 85681
  • Thank you received: 14041
  • MODERATOR
1 week 6 days ago #371936

Hi,

Since I'm not able to reproduce the issue on my end, could you activate the "debug" setting of the Joomla configuration page and try again ? Then, when you get the error, instead of the "headers" tab of the developer tools' network tab, look at the "preview" one. You should see the full error message including the call stack. That will allow us to properly understand what's going on.

Please Log in or Create an account to join the conversation.

  • Posts: 73
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
1 week 4 days ago #371955

Hello

Hello, I've attached screenshots, but no errors appear in the Joomla debug window, only in the browser's developer tools.

Regards

Please Log in or Create an account to join the conversation.

  • Posts: 85681
  • Thank you received: 14041
  • MODERATOR
1 week 4 days ago #371957

Hi,

Since I still had an account on your website, I looked into it directly.
One problem you have on your website is the file templates/YOUR_TEMPLATE/error.php which is a custom error page of your Joomla template which doesn't properly display error messages.
So, on your screenshots we can't see the error message.
I renamed that file to error_old.php and now, if you redo the process I talked about in my previous message, you can see the error:

Unterminated comment starting line 2
/home/ofertaex/public_html/abierto.uy/media/com_hikashop/mail/new_comment.html.modified.php:2

Call Stack
#	Function	Location
1	()	JROOT/media/com_hikashop/mail/new_comment.html.modified.php:2
2	hikashopMailClass->loadEmail()	JROOT/administrator/components/com_hikashop/classes/mail.php:32
3	hikashopMailClass->get()	JROOT/administrator/components/com_hikashop/classes/vote.php:558
4	hikashopVoteClass->sendNotifComment()	JROOT/administrator/components/com_hikashop/classes/vote.php:337
...
What this says is that you have customized the "new comment" email in the System>Emails in an incorrect manner.
Then, if I check the email there, I can see this code at the beginning:
<?php
/**
 * @package	HikaShop for Joomla!
 * @version	6.3.0
 * @author	hikashop.com
 * @copyright	(C) 2010-2026 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 *
defined('_JEXEC') or die('Restricted access');
?>
You're missing the line with "*/" before the "defined('_JEXEC') or die('Restricted access');" line.

Please Log in or Create an account to join the conversation.

  • Posts: 73
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
1 week 3 days ago #371970

Hello

Excellent, thank you so much for taking a closer look.

I've only found one small detail that isn't quite right: the message is created, a notification appears on screen, and the email is sent, but the comment list isn't updated. When the notification is hidden, the user can't see the message unless they reload the page. I don't see any error messages in the browser's developer tools.

I've attached a video as evidence.

Thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 85681
  • Thank you received: 14041
  • MODERATOR
1 week 3 days ago #371975

Hi,

No video, but I found the issue. It's because the comments list is on its own tab on the tabular layout you're using. And in that case, the page needs a full refresh when the first comment is posted on it.
I've made a patch on our end for this.
Download again the install package of HikaShop on our website and install it on yours to get it.
Then, do a hard refresh on the product page before posting the new first comment of a product and it will auto refresh the page after the comment is submitted.

Please Log in or Create an account to join the conversation.

  • Posts: 73
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
1 week 19 hours ago #372018

Hello

I installed version com_hikashop_business_v6.4.1_2026-05-22_00-50-27.zip, following your instructions, but with the tabular layout, the comments don't update; they only update when the page is reloaded. It works with other layouts.

Are there any other things I can try to resolve this?

Thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 85681
  • Thank you received: 14041
  • MODERATOR
1 week 10 hours ago #372019

Hi,

I checked your website again but I don't see the problem anymore. For me, the page auto refreshes for the first comment with the tabular layout and thus I properly see the new comment automatically after posting it.
Note that as I said in my previous message, you need to do a hard refresh on the product page on the frontend in order to flush the cached javascript of the vote system from your browser. Otherwise, your browser will be using the version of the JS from before the patch and you won't see any changes.
One thing you can try is to test with another browser.

The following user(s) said Thank You: nmacri

Please Log in or Create an account to join the conversation.

  • Posts: 73
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
4 days 17 hours ago #372026

Hi

I tried again and it worked correctly this time.

Thanks!

Please Log in or Create an account to join the conversation.

Time to create page: 0.237 seconds
Powered by Kunena Forum