I've looking for the way that show product reviews count in homepage opencart about 3 days, but no one can help me. Though there are some extensions for that but must be paid, i only want to call for product reviews in my opencart homepage.
I found my product page can show the sum of reviews, and the code is below:
then i tried to call for this function on my homepage, insert the above code into product_module.tpl
(plus: homepage has also called for product_module.tpl) but it said:
Code: Select all
Notice: Undefined variable: reviews in
\catalog\view\theme\mystore\template\module\product_module.tpl on line 94
I only want to show the reviews count, so difficult, who can help me?