2

Recently I came across a site which contains some modifications in app/code/core/Mage/Core/functions.php file. I would like to keep code clean and move the changes to custom module in local scope; but as the functions.php file does not fall under any basic magento block, I don't know how to create custom module for it.

I would like to hear if you have encountered such problem before and you approach to solve it.

Any constructive comment is welcomed.

Thanks in advance.

1 Answer 1

0

May be i have misunderstood your question but if you want to override use

app/code/**local**/Mage/Core/functions.php

But there are also reasons not to do this.

3
  • This means I will need to copy all code of the function, but I only want to override a part of it. Also, as you pointed serious issues to discourage this practice. Aug 11, 2016 at 17:38
  • i think you should copy core code in local folder and then make your changes. Then you can check if everything works fine. Points to be remembered are (serious issues) stackoverflow.com/questions/5978153/…. just take a look at this link.
    – Arjun
    Aug 12, 2016 at 4:07
  • You are missing the main point here. Copying file is an approach but why copy things we won't be using? Aug 12, 2016 at 13:07

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.