• Digital Products & Software

How to override/extend controller in Magento 1

Published On: 25 July 2018.By .

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

Stay Close to What We’re Building

Get insights on product engineering, AI, and real-world technology decisions shaping modern businesses.

Go to Top