2 format the code
source | link

I want to create custom note for an attribute I added to the products, so I hooked an event adminhtml_catalog_product_edit_prepare_formadminhtml_catalog_product_edit_prepare_form, but I need the actually edited product object, how can I get that from the $observer$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)

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)

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
source | link

How to get product object from observer in product edit prepare form event?

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)