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)


you can get current product from registry like below

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

hope this will work for you.

  • Yes, it works, thank You for this FAST answer! :) – TeeCee Dec 4 '15 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 '15 at 9:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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