2

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?

1
  • What have you tried so far? Did you look into app/code/core/Mage to begin with? Commented Jul 5, 2016 at 7:40

1 Answer 1

0

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

6
  • @jassi feel free to mark your question as answered so it'll benefit for others Commented Jul 5, 2016 at 7:45
  • You can tell me how you found the path?
    – jassi
    Commented Jul 5, 2016 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 Commented Jul 5, 2016 at 10:01
  • you are so fast :)
    – jassi
    Commented Jul 5, 2016 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
    Commented Jul 5, 2016 at 10:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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