Reputation: 519
I am interested to know which file is used in Magento which create products in Magento? In Magento, we create New Product from Catalog->Manage Product->Add Product.
Then after selecting product type & attribute set, we insert necessary product detials & last we press SAVE tab. Now I want this file/function/code location
through which Magento saves product in database
?
How to get product Id from that file? Also how to get Category Id to which any particular product is assigned?
Upvotes: 1
Views: 3113
Reputation: 616
the following is the path of the controller file which used in the product save
app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php
and the method used for this is public function saveAction() {}
cheers..
Thanks, jeet
Upvotes: 2
Reputation: 3797
I am not sure whether this will help u a lot, but try to start your search from:
Mage_Adminhtml_Catalog_ProductController saveAction
Moreover debug_backtrace() function might help u a lot.
Upvotes: 2