Jump to content

Add informations to each product (in list) with override


StepOne
 Share

Recommended Posts

Hi,

 

I would like to display available Carriers in a product.

 

So, I did it with override ProductController.php for Product detail :

$this->product->getCarriers();

 

But I need it in the list of products too (in each product miniature). But I don't know how to override because CategoryController seems not have the possibility to change each product in the list.

 

Could you help me on how to do this?

 

Thanks !

Share this post


Link to post
Share on other sites

Thanks a lot for your answer.

 

I didn't success with this so I've created a module directly (I Thought it was quicker with override). I passed the product parameters in the hook and then get the Carriers and finally displayed the result in the hook.

Edited by StepOne (see edit history)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More