Answer the question
In order to leave comments, you need to log in
Why do modifications crash on opencart?
Please don't throw stones if I'm talking nonsense. I just started to understand in opencart. There is a Russian assembly 2.1.0.1.
In the /system/storage/modification folder, I make various changes to php files, the changes relate to both standard functionality and some additional solutions. After pressing the "update modifiers" button, all my custom modifications flies from the control panel, which, as I understand it, must be registered somewhere in the system. Tell me, please, how to make your edits to system files in opencart so that such incidents do not happen ...
Answer the question
In order to leave comments, you need to log in
Because the files in the modification folder are modified vqmod/ocmod files.
Opencart first looks: if the called file has a modified file. If there is, it loads it, and if not, it loads the standard file.
Solution 2:
1. Create your own modifiers and upload them through the admin panel. The option is correct, but long.
2. Make edits to standard files.
When modifiers are updated, all files from the modification folder are deleted. And new ones are created instead. The new file is a standard file with modifications applied.
The files are stored in the /system/storage/modification folder until the first click on the "update modifiers" button from the control panel, so there is no point in changing them.
I wouldn’t recommend changing standard files either, it’s better to create a * .ocmod.xml file in the / system folder (we write any name instead of an asterisk) and the system will make changes from this file to the cache after updating the cache
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question