PsychoZzzorD Posted August 30, 2017 Share Posted August 30, 2017 (edited) Hi everyone,I'm currently working on a website where all the product are displayed by category on the homepage.So I installed the Home Category Plus module, and I combined it with the great Display product rating in product-list tutorial from NemoPS, and this part work just fine.Now I wanted to be able to rate from here, so I tried to hook the productcomments.tpl directly inside the homecategoryplus module.The problem is that, even if the $product variable is present in the homecategoryplus module, it is not inside the productcomments (while productcomments is inside homecategoryplus).I tried to var_dump the product variable and realise she was not transmitted to the productcomments module.So I tried to get back the $product variable thanks to the id_product, because I can access it inside the productcomments, but without succes. So I am searching how to transfer the $product variable from the homecategoryplus module to the productcomments module it contains, to be able to rate them from my homepage, I searched for hours but didn't find.Can someone help me ?Thanks in advance,Paul Edited August 30, 2017 by PsychoZzzorD (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now