Page 1 of 5
OpenCart 2.0 and vQmod
Posted: Thu Aug 07, 2014 1:47 pm
by i2Paq
So we have vQmod, OCmod and Override Engine?
Who came up with that clever Gorilla marketing strategy?
Serious; why not just use vQmod instead of OCmod and Override Engine?
Do we really need 3 different modification engines for just one piece of software?
Do they even work together?
And if I read right, OCmod is a poor mans vQmod?
Re: OpenCart 2.0 alpha release available - for testing use o
Posted: Thu Aug 07, 2014 6:35 pm
by JAY6390
i2Paq wrote:So we have vQmod, OCmod and Override Engine?
Yep
i2Paq wrote:Serious; why not just use vQmod instead of OCmod and Override Engine?
I agree about ocmod, but Override Engine has it's own features that make it useful and really isn't anything like vQmod
i2Paq wrote:Do they even work together?
Not right now no
i2Paq wrote:And if I read right, OCmod is a poor mans vQmod?
Pretty much yeah
Re: OpenCart 2.0 alpha release available - for testing use o
Posted: Thu Aug 07, 2014 6:52 pm
by JNeuhoff
Actually, the Override Engine and OCmod/VQmod work together just fine, I have them all on my OpenCart 2.0 test server.
BTW.: There are 4 ways of modifying OpenCart core files:
Re: OpenCart 2.0 alpha release available - for testing use o
Posted: Thu Aug 07, 2014 6:56 pm
by JAY6390
JNeuhoff wrote:Actually, the Override Engine and OCmod/VQmod work together just fine, I have them all on my OpenCart 2.0 test server.
Sorry, I should have clarified I was referring to out of the box for vQmod specifically. At the moment it won't integrate with them using the standard installer.
Re: OpenCart 2.0 alpha release available - for testing use o
Posted: Thu Aug 07, 2014 10:45 pm
by i2Paq
JAY6390 wrote:i2Paq wrote:So we have vQmod, OCmod and Override Engine?
Yep
i2Paq wrote:Serious; why not just use vQmod instead of OCmod and Override Engine?
I agree about ocmod, but Override Engine has it's own features that make it useful and really isn't anything like vQmod
i2Paq wrote:Do they even work together?
Not right now no
i2Paq wrote:And if I read right, OCmod is a poor mans vQmod?
Pretty much yeah
Wauw!
Who could imagine when vQmod came out you guys (reed: Extensions builders) would have to build 3 (or more) versions of your extension to be able to sell them to people using OpenCart.....
Could we PLEASE(!) use vQmod in the core of OC instead of ocMod?
It's like buying a BMW 5-series but instead of having a 2.0 liter engine you buy it with a 1.6

Re: OpenCart 2.0 alpha release available - for testing use o
Posted: Thu Aug 07, 2014 11:00 pm
by James
LOL, don't worry this issue is on my list...there is no way that 4 different approaches is viable for developers (or maybe it is but I sure as hell don't want to make 4 versions of modules based on the user choice).
I am coming around to this soon and will be asking for feedback and opinions on what is missing, needed, nice to have etc
I appreciate there will be disagreements on "the best way" but I will look at everything and then put it to Daniel to discuss. Obviously Daniel wants people to use OCmod, developers want to use vQmod, I just want what ever is going to work best for everyone.
Ideally (IMO) Jay and Qphoria would best best to head up the "default" integrated file modification solution - they have more experience in that area, but that's down to them and Daniel
I'll be back to discuss this v soon though.
J
Re: OpenCart 2.0 alpha release available - for testing use o
Posted: Thu Aug 07, 2014 11:47 pm
by JNeuhoff
James, I have already made a VQmod-compatible modification system for OC 2.0:
http://forum.opencart.com/viewtopic.php ... 30#p494330
Anybody, please feel free to use it if you want.
IMHO, both VQmod and OCmod are not the longterm solution as a system for modifying OpenCart core files.
Using hooks (OC 2.0 has something like this in the form of event handlers for model classes), or overridden methods in extended core classes should be the prefered way. We need to move away from the reliance of exact source code matches for modifying core files.
Re: OpenCart 2.0 alpha release available - for testing use o
Posted: Fri Aug 08, 2014 12:13 am
by qahar
Most people will use ocMod including developer, it's the default feature after all.
Use 3rd modification method is optional, but would be redundant for user and developer when it comes to conflicting with ocMod. Furthermore there is another "Event" handler that probably the closer features to plugin/ hook mechanism.
My only concern is will ocMod properly documented and tested before OC2 stable is released.
I'm afraid the experience with 1.5.x is repeating, where most new version contain change at framework level without notice.
IMO it's good time to implement better management.
Once OC2 is released in hurry under stable while there is still discussion at framework level it would be disaster for everyone.
Re: OpenCart 2.0 alpha release available - for testing use o
Posted: Fri Aug 08, 2014 12:41 am
by JAY6390
Honestly I find it pointless adding ocmod in, and not vqmod at this point. It's used by thousands of developers already, everyone already knows exactly how it works, and have thousands of extensions on the extension store already using it. Breaking ALL of these is just ridiculous, especially considering the only reason ocmod was added was due to people wanting vQmod installed by default. I was in the process of writing a 3.0 version of vQmod this time last year roughly, but didn't bother with ocmod being developed into the core, expecting it to just replicate vQmod. However, as it stands it's going to screw up every single vQmod, and there are still parts that aren't working at all such as before/after which are fundamental to it's adoption. Having to have two separate systems is going to be a nightmare. I don't see the point in me or Q rewriting vQmod for 2.0 when it already works if it's used the way it was originally intended
Re: OpenCart 2.0 alpha release available - for testing use o
Posted: Fri Aug 08, 2014 1:28 am
by Qphoria
I'm all for vQmod being added to the core.. even if it is done in its own way. And I see one of the main differences is that the "position" attribute was moved to the <add> block instead of the <search> block which makes perfect sense. The fact is, I was using SMF Forum's mod system as a base and I too wondered why the position attribute wasn't in the <add> block... but figured I might be able to improve adoption by using a syntax that other's have used so I kept it.
Still, it should probably be set in ocmod to support position in either position and if it is in both then only use the one from the <add> tag. That is what the plan for vQmod was going to be, so that ocmod and vqmod scripts could be cross compatible.... but there also see to be some other things like the "after" position acting more like "inline-after" instead of going to a new line so I'm not too keen on that. Perhaps a break down of the differences between ocmod and vqmod is needed first to determine what would make ocmod better or more compatible.. or if the changes are worth a new syntax.
Re: OpenCart 2.0 alpha release available - for testing use o
Posted: Fri Aug 08, 2014 3:40 am
by i2Paq
Pardon moi French but what kind of
crap decision is this to install something called ocMod while we have been using vQmod for over 2 years now?
Has there been no discussion about this but just "heck, lets just ignore vQmod and all the developers and just make something up", "Who cares that we have 1000nds of vQmods all over the forum and make them useless and have everybody re-invent the wheel"?
Really

Re: OpenCart 2.0 alpha release available - for testing use o
Posted: Fri Aug 08, 2014 4:52 am
by James
Think you may mean pardon
mon French
Didn't really want to start on this topic in detail for a few more days but I guess it's pretty much THE most important feature when it comes to revenue generation for OC and looking after the mod developers, so yeah lets get started on trying to resolve this.
I think the concept behind the ocmod system was great - a native vqmod type system. But I do think that it is unfinished/missing too much and will be a deal breaker with many devs as already mentioned. It needs to be better before its accepted.
So the current options are:
1. Scrap OCmod for 2.0 and spend more time on it for say 2.1, use vQmod for now.
2. Improve OCmod for 2.0 but will very likely delay the 2.0 launch. Make it at least inline with vQmod and make the scripts backwards compatible.
FYI no matter what you say you preffer I have zero control over the choice, it is down to Daniel.
I 100% agree that dropping compatibility for thousands of modules is a bad idea, I am not bothered about creating new modules using a new system but if the new one doesn't do all and more than what the old one does - then people will not bother and OCmod will flop.
but figured I might be able to improve adoption by using a syntax that other's have used so I kept it.
Qphoria, I think that just about nails it
Basically right now its a mad house trying to get everything inline to get this release done, but everything so far I have tried to make sure it's done right. I will speak with Daniel tomorrow or Monday and discuss options and solutions, I don't really want to take over looking after the default modification system (what ever it ends up being) but if Daniel doesn't have the time to make the changes then I'll step in.
J
Re: OpenCart 2.0 alpha release available - for testing use o
Posted: Fri Aug 08, 2014 1:46 pm
by i2Paq
James wrote:Think you may mean pardon
mon French

A oui!
So the current options are:
1. Scrap OCmod for 2.0 and spend more time on it for say 2.1, use vQmod for now.
2. Improve OCmod for 2.0 but will very likely delay the 2.0 launch. Make it at least inline with vQmod and make the scripts backwards compatible.
FYI no matter what you say you preffer I have zero control over the choice, it is down to Daniel.
Option 3. Delay 2.0, get vQmod in and lets do it right for the first time.
No backwards compatibility issues, current vQmod script will (almost) work out of the box.
Investments made in current scripts by OpenCart users will keep their value.
No new learning-curve(s) + 1000nds of topics on our forums regarding ocMod and its (non)function or "hey, my xml is not working!" (no, because it is a vQmod script and not an ocMod script....)
No issues where vQmod is not working next to ocMod.
I 100% agree that dropping compatibility for thousands of modules is a bad idea, I am not bothered about creating new modules using a new system but if the new one doesn't do all and more than what the old one does - then people will not bother and OCmod will flop.
Bad idea?
Why did no-body came up with this before?
Because, and yet again, things like this have NOT been discussed!
Why is Daniel not in this discussion, it was his decision to go this path.
I was told, some time back, that vQmod would be integrated and not something called ocMod.
Come on, we have been waiting for 2.0 some time now and waiting some more won't hurt OC.
Releasing it with ocMod while vQmod is around is some of the wost marketing you could do.
This will hurt OC and make all our enemies lough their heads off.
Re: OpenCart 2.0 alpha release available - for testing use o
Posted: Fri Aug 08, 2014 5:23 pm
by qahar
i2Paq wrote:Come on, we have been waiting for 2.0 some time now and waiting some more won't hurt OC.
+1
IMO, with alpha introduction in August, my prediction OC2 will launch at January 2015.
There is still several month to discuss and do more test.
OpenCart 2 will mature through several release that hurt extensions,
or open more discussion and do test as much as possible before launch stable release.
Re: OpenCart 2.0 alpha release available - for testing use o
Posted: Fri Aug 08, 2014 8:24 pm
by JNeuhoff
i2Paq wrote:
Has there been no discussion about this but just "heck, lets just ignore vQmod and all the developers and just make something up", "Who cares that we have 1000nds of vQmods all over the forum and make them useless and have everybody re-invent the wheel"?
Really

I have had a
discussion with Daniel about this on github a while ago. In the end Daniel decided to use his own OCmod XML syntax instead of the VQmod XML.
If Daniel doesn't include VQmod XML syntax support, it won't be the end of the world, I have
already released support for VQmod XML for testing, and will also make it available on the OpenCart Extensions once OpenCart 2.0 is released. So there is no need to worry about loosing past investments of existing VQmod XML scripts, even though most existing VQmod files will have to be reworked and upgraded to work with OC2 anyway, because the OC2 core files are quite different from those of OC 1.5.x.
Re: OpenCart 2.0 alpha release available - for testing use o
Posted: Fri Aug 08, 2014 10:07 pm
by ThePath
Thought I'd add my 2 cents for what they're worth (mmm 2 cents maybe).
I cant believe that the long awaited v2 would be launched with anything less than a fully operational VQmod/ocmod that operates as it does now (doesnt matter what its called). As JNeuhoff says devs will have to re-do their mods as so many core files will have changed but I think less features or a change in syntax etc maybe a change too far.
JNeuhoff also nails it for me with the notion of a hook system like Wordpress. If this is introduced though I think it prudent that its run alongside a vqmod system until devs fully adopt the hook system. A comprehensive dev guide to a new hook system should also be written up for dumb bums like me to follow.
But yeh we all know vqmod and how it works, dont change it, just integrate it, save a whole lot of moaning thats for sure

Re: OpenCart 2.0 alpha release available - for testing use o
Posted: Fri Aug 08, 2014 10:45 pm
by tjsystems
ThePath wrote:But yeh we all know vqmod and how it works, dont change it, just integrate it, save a whole lot of moaning thats for sure

+1
Let's keep it to vqmod!
Re: OpenCart 2.0 alpha release available - for testing use o
Posted: Fri Aug 08, 2014 11:14 pm
by JAY6390
ThePath wrote:JNeuhoff also nails it for me with the notion of a hook system like Wordpress. If this is introduced though I think it prudent that its run alongside a vqmod system until devs fully adopt the hook system. A comprehensive dev guide to a new hook system should also be written up for dumb bums like me to follow.
the hook system is actually in place already and works really well
https://github.com/opencart/opencart/wi ... fications)
it also has a feature not yet documented where you can read and manipulate the data before it gets added to the database which was well needed imo
https://github.com/opencart/opencart/co ... nt-7312888
Re: OpenCart 2.0 alpha release available - for testing use o
Posted: Sat Aug 09, 2014 3:00 am
by dabomb59404
ThePath wrote:
But yeh we all know vqmod and how it works, dont change it, just integrate it, save a whole lot of moaning thats for sure

+1
imho vQmod and vQmod Manager should both be integrated into 2.0
Re: OpenCart 2.0 alpha release available - for testing use o
Posted: Sat Aug 09, 2014 3:49 am
by rph
dabomb59404 wrote:imho vQmod and vQmod Manager should both be integrated into 2.0
It looks like OC 2.0 will have a more robust system than vQmod Manager though I haven't had time to check it out.
I'm gonna be odd man out and say I'd rather neither vQmod nor OCMod were integrated. Leave vQmod as an add-on and have the OpenCart core concentrate on expanding the Events system.
PHP has matured rapidly in the last few years. Just imagine the power of a Composer-like system for mods. Users could pull and update mods straight from OpenCart and developers could rapidly create code using modern programming tools. It would even allow for a certain level of digital rights management.