A
A
AndTheEnd2020-08-27 17:35:38
opencart
AndTheEnd, 2020-08-27 17:35:38

What files cannot be modified in OpenCart?

Hello.

I started working with OC and I want to ask this question. I need to write a function that will work with goods.
I want to use functions from the ModelCatalogProduct class. This class is declared in ../catalog/model/catalog/product.php

And the question is, can I write something there at all? Can I append to this file? Or will everything be erased when I want to update the engine?

Would it be better to create a file with its own class and functions in the /catalog/model/catalog/ directory?

The general question is, which files CANNOT be modified on a given system so that my edits are not overwritten when the engine is updated?

At the moment, the engine version is 2.3.0.2.3

Thank you

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VVCh, 2020-08-29
@AndTheEnd

At the moment, the engine version is 2.3.0.2.3

This version will never be updated.
In addition, updating major versions of the OS is not such a frequent thing
. What can be modified with handles?
Almost everything that you consider an integral part of your store,
but you must do this very carefully so as not to violate the key points. Possibly using a versioning system

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question