Good afternoon,
Opencart Version 2.1.0.1
I have added the star rating to the category page but I cannot work out how to add the quantity for reviews such as "1 Review" the same as the product page.
I presume the files I need to edit are?
view/theme/default/template/product/category.tpl
and
catalog/controller/product/category.php
but I am unsure of the correct code required? Thank you for any help.
You should be able to just add
to the array:
I think.
Code: Select all
'review_count' => $result['reviews'],
Code: Select all
$data['products'][] = array(
-
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS
Ensure to use:
Code: Select all
<?php echo $product['review_count']; ?>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 99 guests