mrzoom Posted November 11, 2011 Share Posted November 11, 2011 Hi, I'm trying to use a hook in product_list and need it be called once for each product and somehow pass along the product id, so i can get out relevant data for each product. Is this possible? Link to comment Share on other sites More sharing options...
tomerg3 Posted November 11, 2011 Share Posted November 11, 2011 Why are you trying to use a hook? What are you trying to accomplish? Link to comment Share on other sites More sharing options...
mrzoom Posted November 12, 2011 Author Share Posted November 12, 2011 I have build a module for voting and i'm trying to show the current stars for each produkt in the product_list. I will soon build a another module which uses cURL to login on my manufaturere's site and get his current stock live for each product and show that in the product_list. Link to comment Share on other sites More sharing options...
tomerg3 Posted November 12, 2011 Share Posted November 12, 2011 You should consider using the override files instead of using hooks (as you will need to create an override file to call your hooks anyway). You can override the getProducts function in the category class and add the variables you need right there. You could also override the function in Product class that adds more info to the product list (don't recall it off the top of my head) 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