Jump to content

[SOLVED] Get product object in hookheader PS 1.5


Recommended Posts

Thanks Alexander I appreciate your suggestion but I already know this way :)


I was interested in a more directed way.


I'll leave the post open waiting for some more suggestions.


BTW thank you again buddy :)!

Share this post

Link to post
Share on other sites



Check my commit here:




Just check if current controller = product and then you can use:

$product_instance = $this->context->controller->getProduct()


I use this also for categories, of course a whole code goes to override.

Edited by Krystian Podemski (see edit history)
  • Like 1

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

  • Create New...

Important Information

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