-- HikaShop version -- : 3.4.0
Hi, Hikashop Team!
After updating to 3.4.0 the gray stars don't showing to guests if the rating is empty.
For someone it's good, for others it's bad.
I suggest to change a small piece of code in vote template mini.php
if(!$canVote && $row->hikashop_vote_total_vote == '0'){
echo '<div class="hikashop_vote_stars">'.JText::_('HIKA_NO_VOTE').'</div>';
return;
}
To:
if(!$canVote && $row->hikashop_vote_total_vote == '0'){
echo '<div class="hk-rating hk-rating-empty" data-original-title="'.JText::_('HIKA_NO_VOTE').'" data-toggle="hk-tooltip">';
for($i = 1; $i <= $row->hikashop_vote_nb_star; $i++) {
echo '<span class="hk-rate-star state-empty"></span>';
}
echo '</div>';
return;
}
This will enable us to control the display of the empty rating via CSS styles, without creating an override for this view.
.hk-rating.hk-rating-empty {
display: none;
}
Perhaps you can include it in the next release.
Thank you
Best regards