Magento - How to get form input values when adding new product

I am trying to collect values of form fields when adding a new product in Magento, so when new product gets added, the email will be send to the admin containing all the values (Name, Model, SKU etc...)
straker1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

miked2004Commented:
Not exactly sure what you mean.

Are you sending an email to the admin when a Backend user adds a new product?

If so create a custom module and add an observer for the "catalog_product_prepare_save" event.

This event will have the $product var passed in. You can access all the products attributes/information from this object. See code for example of retrieving attributes.

Here is a link on using observers: http://www.magentocommerce.com/wiki/customizing_magento_using_event-observer_method
$product->getSku();
$product->getPrice();
$product->getDescription();

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Applications

From novice to tech pro — start learning today.