Web Analytics

Fill the form & Get Installation Support

Any Question or Concerns?
Let's discuss

    Overriding Model in Magento 1.9.X

    Related articles

    The list of files required for the Overriding model through a new module:

    Creating Files and Folders: Custom Module
    What we need to do is to create a module file.
    Make a file – “app/etc/modules/Magemonkeys_Catalog.xml”
    Then, add the below code inside the file

    Now create “app/code/local/Magemonkeys/Catalog/etc/config.xml” and add the below code inside the file:

    We have defined a module version using the <version> tag. After that, the <catalog> & <rewrite> tags are used to override a “model” of the “Catalog” core module.

    The final step will be to define a model class Magemonkeys_Catalog_Model_Category.
    Make a model file “app/code/local/Magemonkeys/Catalog/Model/Category.php” and paste the following code inside it:

    That’s it.

    Contact us for scientific strategies to increase your site conversions

      Connect With Us