Replies: 7 comments 9 replies
-
correct. to many issues for newbies fixing generated code rather than the xml file. its to much messing around look for whic line of code causing issues. |
Beta Was this translation helpful? Give feedback.
-
Not sure how it helps evolving the events when there's an install.xml (OCMod) file inside the ZIP file for OC v4 ... |
Beta Was this translation helpful? Give feedback.
-
I have a different point of view on OCMOD, I consider it the best tool of Opencart and its biggest differential in development, I've even been using vQmod and then OCMOD for more than 10 years in more than 100 products, it always worked very well even more later that OCMOD became more mature, at this time it was only necessary to deal with a non-standard theme, adapt the line or when the client itself modified an original Opencart file or used a fork version and even then it was super easy to adapt, due to the Log, it is enough see Not Found and adapt. Perhaps the point could be to encourage the correct use of the tool, avoiding excess offset and index if possible, in addition to doing it with fewer operations, if the professional is good, he can do magic with OCMOD when it needs to be used, if there was a way for the editor to recognize the PHP inside would be perfect lol, at this point a tool that is code directly in PHP can have advantages like PHP error formatting and validation, but using Model in OCMOD was another correct way to use it mainly for big PHP. It really has a lot of bad modifications, some with meaningless operations and very wide searches, now bad code depends on the professional, if not through OCMOD it will be straight in the original files, Events or any other possible way. I think the biggest problem is the non-standard themes of the platform, no matter the development tool, if the theme is of low quality and non-standard of Opencart, conflicts, problems or failure to get a visual module will occur. Even I don't currently see how I would deal with conflicts and adaptations to themes easily, but of course it is possible to improve even more if it becomes a tool that goes beyond Events, but I would recommend in this case even changing the name even to demonstrate that Opencart It's not just Events, but another tool or a broader one that has Events and other extras. |
Beta Was this translation helpful? Give feedback.
-
The advantage of OCMOD in these cases is that it has Logs and generates a Cache, it never modifies the original file directly, it is also a form of protection for the developer, because in case of an error in the store it can be easily proven that a certain module does not have it. any relationship by disabling the XML or even clearing the general modification cache. Events is just an Events tool in general, even very well made and planned, but its use in general is for triggers and not a system that can basically change any line of php or twig files like OCMOD and doesn't have the same resources of the OCMOD. I think a possible idea would be to create a new tool, perhaps an OCMOD 2.0 with another name and proposal, which has resources within it of Events and to be able to change any single line like OCMOD and preferably generating a cache so as not to have a high cost of performance and logs. I even came up with an idea about going back to OCMOD #10883, as I currently don't see how Events would meet every use case that OCMOD managed to cover and in a simple, safe and high-performance way because a cache is generated. We also have to think about the migration of modules, there are thousands of modules that use OCMOD and many in which Opencart 4 doesn't have a tool that can handle 100% without messing directly with the file, which I don't recommend. About the idea of improvements, I think I would need to solve these questions:
|
Beta Was this translation helpful? Give feedback.
-
Until we created the OCMOD Editor, working with ocmod was difficult and almost always full of conflicts, the same for vqmod that also had an editor made by another user for the same difficulties. I remember when ocmod came as an alternative to vqmod in OpenCart 2, and the same speech was made, that we didn't need ocmod because we already had vqmod and it was better, but in the end, after we evolved the tools to work with ocmod, it was accepted. This debate about the importance of ocmod is valid, but it doesn't help as the changes are here to help OpenCart continue to evolve. |
Beta Was this translation helpful? Give feedback.
-
Some admin delete this conversation, because I believe they didn't understand that it was to be dedicated to ideas to improve events and not to talk about ocmod. |
Beta Was this translation helpful? Give feedback.
-
I will write some examples. I have it planned out. After that I will fix more issues upgrade bs5, jQuery, etc..then new minor release. |
Beta Was this translation helpful? Give feedback.
-
Congratulations on removing OCMOD @danielkerr!
OCMOD was a nice feature, but let's face it, it was just an amateur feature that caused more problems than it helped.
We had to create an OCMOD Editor to be able to solve the dozens of problems with conflicts in poorly made modifications, follow the Editor:
https://www.opencart.com/index.php?route=marketplace/extension/info&extension_id=22015
That's why we're happy with his departure and now ready to help with the evolution of the event system!
This topic is to discuss ideas on how to make the event system more practical, because without a doubt this is the future of OpenCart.
We will engage in evolution as we love OpenCart!
Beta Was this translation helpful? Give feedback.
All reactions