1

I want to create custom note for an attribute I added to the products, so I hooked an event adminhtml_catalog_product_edit_prepare_form, but I need the actually edited product object, how can I get that from the $observer?

(I could get the ID from URL and load it by myself, but I'm sure there is a way to get the already loaded object...)

Thanks, TeeCee :o)

1 Answer 1

1

you can get current product from registry like below

$values = Mage::registry('product')->getData();

hope this will work for you.

2
  • Yes, it works, thank You for this FAST answer! :)
    – TeeCee
    Dec 4, 2015 at 9:40
  • Yup, I wanted to accept it already, but it is time limited. You were faster... Still 6 minutes to go :)
    – TeeCee
    Dec 4, 2015 at 9:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.