A
A
altkov2021-07-20 14:26:30
opencart
altkov, 2021-07-20 14:26:30

Should I change OpenCart modules?

The question is rather general - for example, there is a site on OpenCart, on it, with the help of a module, a certain function is implemented, for example, a menu, and this module is fully responsible for this menu. However, the appearance of the menu (which is set in the module) needs to be changed. Is it worth adding a module in this case or not? Is it worth adding modules at all if you need to add functions? What to do? I myself used to mainly work with Wordpress, where, for example, plugins should never be changed, updates, etc. But in OpenCart everything is different. How to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
opencartbot, 2021-07-20
@altkov

If you plan to update the module in the future, then it is better not to edit its code, since all the improvements will be lost during the update. Just like in Wordpress, only there is no automatic updating of modules.
How to improve modules? OpenCart has an ocmod modifier system, with its help you can change (add, replace, remove) any code in module files.
The ocmod modifier is an xml document with an "instruction" for the system where and what needs to be changed in the code. It is installed as a module, through the download in the admin panel. The list of installed modifiers can be seen in the Extensions : Modifiers section.
Google will tell you more about what ocmod is and how to write it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question