Jump to content

[SOLVED] Get product object in hookheader PS 1.5


gr4devel

Recommended Posts

Hello

 

Check my commit here:

 

https://github.com/P...taShop/pull/644

 

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
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...