Jump to content

Calling hook more then once with diffrent data


mrzoom

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...