Hi,
Thanks for the report, please replace the code:
if($vElement->vote_type == 'product') {
$type = new stdClass();
$type->product_id = (int)$vElement->vote_ref_id;
$type->product_average_score = $hikashop_vote_average_score_new;
$type->product_total_vote = (int)$hikashop_vote_total_score_new;
$typeClass->save($type,true);
}
By:
if($vElement->vote_type == 'product' && $vElement->vote_published) {
$type = new stdClass();
$type->product_id = (int)$vElement->vote_ref_id;
$type->product_average_score = $hikashop_vote_average_score_new;
$type->product_total_vote = (int)$hikashop_vote_total_score_new;
$typeClass->save($type,true);
}
In the file "administrator/components/com_hikashop/classes/vote.php", function "saveFrontend()".
We already have corrected that on our end and the fix will be available in the next release of HikaShop.