I am new to Magento. Please can anyone tell me the path of file in Magento's admin panel - Catalog, Manage Products, Add Product - In that Save button.

Where the code is written for saving products in admin panel?

  • What have you tried so far? Did you look into app/code/core/Mage to begin with? – Julien Lachal Jul 5 '16 at 7:40

You can find the code that saves the products under app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php in the saveAction() method

  • @jassi feel free to mark your question as answered so it'll benefit for others – Raphael at Digital Pianism Jul 5 '16 at 7:45
  • You can tell me how you found the path? – jassi Jul 5 '16 at 9:59
  • @jassi I knew it ^^ but basically in Magento the URL your.store.com/route/controllername/action will match app/code/core/Mage/Modulewiththatroute/controllers/ControllernameController.php with actionAction() method – Raphael at Digital Pianism Jul 5 '16 at 10:01
  • you are so fast :) – jassi Jul 5 '16 at 10:03
  • I have print the value for Product in both frontend and admin but value for store_id differs. In frontend it gives 1 and at backend it gives 0. Any specific reason why? – jassi Jul 5 '16 at 10:06

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.