D
D
daroyar2019-10-10 14:39:12
Layout
daroyar, 2019-10-10 14:39:12

Opencart 2.3 if zero reviews hide quantity if greater than zero display?

Hello! Tell me, maybe there is already a ready-made module or someone described how to do the following. In opencart 2.3 I want to display next to the rating (stars), if there are zero reviews, then remove 0 and display the "Leave a review" link. And if it is greater than zero, then display the number of reviews with a link without the inscription "Leave a review".

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton R., 2019-10-10
@anton_reut

There is a 46th line in the product model file:
Instead of zero, write text or a button there. A crutch, clumsy, scary (to climb into the model) but it works!
PS Sorry, this is not "near the stars" but in that place I think the principle is the same.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question