Best way to modify OpenCart without touching Core and VQMOD/OCMOD

Serhii Matrunchyk picture Serhii Matrunchyk · Oct 4, 2015 · Viewed 8.5k times · Source

Is there a better way then using VQMOD/OCMOD to change OpenCart's core files?

Is there some "overrides" folder exists so that I can simply create any PHP file corresponding to the file structure and simply override a core file? (Like it is possible in PrestaShop and Magento).

VQMOD/OCMOD is highly inconvenient. Does someone use any hacks & tricks to achieve the result?

I don't want to touch any core files to keep the system clean and manageable.

Thanks a lot!

Answer

Nikhil Chaudhary picture Nikhil Chaudhary · Oct 7, 2015

If you want to call your function within the system which follows the OC structure, avoid the search/replace mods, try using the new Opencart Events (a.k.a. hooks) instead:

https://github.com/opencart/opencart/wiki/Events-System

Or, you can still use the Opencart override engine (by a 3rd-party developer) though.