jboku8 Posted November 29, 2016 Share Posted November 29, 2016 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 and name property is shown as array but when i tried to use that variable like this it did not work. what have i missed? Link to comment Share on other sites More sharing options...
bellini13 Posted November 29, 2016 Share Posted November 29, 2016 looks like you are getting a non-localized Product Object in the hook param. This means you are getting the name of the product as an array (each index in the array represents the name of the product in the given language) Do you have 4 languages in this Shop? 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now