Out of interest, could you tell me JNeuhoff why v2.0 and just a standard install of vQmod wouldn't work?
I thought about it. However, since OpenCart 2.0 already has a nice extension installer, as well as the equivalent of a VQmod manager (admin/controller/extension/modificiation.php), I just focused on adding the VQmod XML syntax to the modification.php.
As regards Daniel's modification XML: I had discussions on this with Daniel on github, and I still think Daniel's modification features aren't sufficient for real world complex modifications. For one thing, his OCMOD treats the target file to be modified like a single string buffer, whereas VQMOD treats it as an array of lines. Because of this, in Daniel's modification system, the position
attribute (with values after/before) are processed more like VQmod's iafter/ibefore, but for the whole string buffer. And Daniel's modification system does not have any equivalent of the important VQmod offset
attribute (there is an attributes in his latest version called offset
, but they work more like VQmod's index
attribute, Daniel just renamed index
I had been toying a while back with something to let you add hooks to the whole mvc essentially - but on the whole the override system does it better so I scrapped it.
I already have the Override Engine ported to OpenCart 2.0. Extending classes and overriding methods is more flexible than using hooks. I am thinking of creating a fork with a VQmod-modification and Override Engine already included in the framework once OpenCart 2.0 is released.