Jump to content

Product Object inside $params variable in hook functiion


Recommended Posts

Hello everyone

 

I have a little problem.

I've created module, registered hooks, implemented appropriate Hook functions ...everything works fine but when i want to make some kind of manipulations with Product Object which is in $params variable passed to hook function. 

i can't use it ...i mean when i var_dump it object is shown

a51924563dac43989054b58951673dc5.png

 

and name property is shown as array but when i tried to use that variable like this

it did not work.

74ea3c64cb3d4ace841cfcd4c52d2791.png

 

what have i missed? 

 

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