How to override/extend controller in Magento 1

Published On: 25 July 2018.By .
  • Digital Engineering
  • Ecommerce
  • General

If we want to override controller file in magento 1 then we need to add create custom modules like following:

Create a new module and declare it in “app/etc/modules” by adding a xml file.

app/code/modules/Wd_Wishlist.xml:

Create folders in app/code/local according to your module and create config.xml in etc folder of your module.

app/code/local/Wd/Wishlist/etc/config.xml:

Create your controller file in “app/code/local/your_module/controllers/”

We can directly override Model,  Block classes by creating file at same path in local folder.

Related content

That’s all for this blog

Go to Top