Can anyone help me? i want to display review count in category.tpl too.. its only display on product page .......... please help
In catalog/controller/product/category.php file,
find:
add below:
Then, in your category.tpl file - in the category foreach loop, you could add:
find:
Code: Select all
'rating' =>
Code: Select all
'total_reviews' => sprintf($this->language->get('tab_review'), $result['reviews']),
Code: Select all
<?php echo $product['total_reviews']; ?>
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 181 guests