After a few days of having oc2.x , i hate the ocmod system.
It was no way needed by me and always loved the regular vqmod and the way it worked for me.
Now i have been trying to install several extensions using ocmod and have a hard time getting things installed.
Mostly i get the error about the directory containing the upload files can not be found (working on localmachine) and the quickfix eg disabled ftp.
Spend numerous valuable time trying to get extensions to work, while never had any problems using vqmod.
Also i hate there is no good clear documentation on how ocmod works what to do with errors etc, searching google and the forum for more than a hour and no answers found!
Now i want to just use vqmod to manage my modifications instead of the installer.
I have been working on adjusting the xml files and upload the needed files by hand, but on some reason the installation part still doesnt work.
The module gets in the modifications menu, but when i click install just nothing happens.
Can anybody tell me what the exact way is to convert ocmod files to vqmod files to
Make them work accordingly?
Also if someone can tell why i get the error about no directory for upload files can be found, i will give the installer another try.
Thanks in advance
Anton
It was no way needed by me and always loved the regular vqmod and the way it worked for me.
Now i have been trying to install several extensions using ocmod and have a hard time getting things installed.
Mostly i get the error about the directory containing the upload files can not be found (working on localmachine) and the quickfix eg disabled ftp.
Spend numerous valuable time trying to get extensions to work, while never had any problems using vqmod.
Also i hate there is no good clear documentation on how ocmod works what to do with errors etc, searching google and the forum for more than a hour and no answers found!
Now i want to just use vqmod to manage my modifications instead of the installer.
I have been working on adjusting the xml files and upload the needed files by hand, but on some reason the installation part still doesnt work.
The module gets in the modifications menu, but when i click install just nothing happens.
Can anybody tell me what the exact way is to convert ocmod files to vqmod files to
Make them work accordingly?
Also if someone can tell why i get the error about no directory for upload files can be found, i will give the installer another try.
Thanks in advance
Anton
the only real difference, I found, was this:
VqMod's:
<file path="catalog/controller/account/" name="login.php">
or:
<file name="catalog/controller/account/login.php">
OcMod's:
<file path="catalog/controller/account/login.php">
At least, on 'simple' OcMod's.
It's the WAY OF ACTING, what makes the real difference, to my knowledge,
OcMod Content is 'handled by' the DB, instead of beeing 'enacted' , kind of,
in final Temp Cache Output Files, as it is done by VqMod.
Therefore, and if this is correct, v2 will have to check and read out the DB first,
and then work itself trough VqMod's Generation, to create a Page-Template. But
how will they co-operate, in a 'productive' manner? I assume, that this would not be
a very practical, and time/load-efficient way, to do such things. If it would work,
as I tried to describe it. But since I never tried, so, I just don't know.
Ernie
VqMod's:
<file path="catalog/controller/account/" name="login.php">
or:
<file name="catalog/controller/account/login.php">
OcMod's:
<file path="catalog/controller/account/login.php">
At least, on 'simple' OcMod's.
It's the WAY OF ACTING, what makes the real difference, to my knowledge,
OcMod Content is 'handled by' the DB, instead of beeing 'enacted' , kind of,
in final Temp Cache Output Files, as it is done by VqMod.
Therefore, and if this is correct, v2 will have to check and read out the DB first,
and then work itself trough VqMod's Generation, to create a Page-Template. But
how will they co-operate, in a 'productive' manner? I assume, that this would not be
a very practical, and time/load-efficient way, to do such things. If it would work,
as I tried to describe it. But since I never tried, so, I just don't know.
Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Differences between OCMOD and VQMOD
OCMOD was created as a simplified cut down version of VQMOD.
Main Feature Differences:
Has
Replace, Before, After, Regex, Offset, Limit, ignoreif, error
Missing
Attributes top, bottom, ibefore, iafter
You should check the XML section of the documentation to see OCMODS full feature list.
Here Vqmod:
And Ocmod:
VQMOD project home page can be found here: https://github.com/opencart/opencart/wi ... ion-System
OCMOD was created as a simplified cut down version of VQMOD.
Main Feature Differences:
Has
Replace, Before, After, Regex, Offset, Limit, ignoreif, error
Missing
Attributes top, bottom, ibefore, iafter
You should check the XML section of the documentation to see OCMODS full feature list.
Here Vqmod:
Code: Select all
<file name="admin/view/template/catalog/product_form.tpl">
<operation>
<search position="replace"><![CDATA[
]]></search>
<add><![CDATA[
]]>
</add>
</operation>
</file>
Code: Select all
<file path="admin/view/template/catalog/product_form.tpl">
<operation>
<search><![CDATA[
]]></search>
<add position="replace"><![CDATA[
]]>
</add>
</operation>
</file>
Thanks for your replies, but i know what the differences are between ocmod and vqmod.
It was just i converted the xml files from my extension so it was vqmod ready but the extension didn't work.
Later i did find that i used an extension that puts vqmod also in the extension installer, it seems that extension isn't working to well.
It does not make the extension installer accept vqmod files (which it should) and it bugs up the installer entirely.
At first i couldn't even upload the ocmod files by hand and install the .xml files using the installer as i should do with manual install.
Later i deleted the above mentioned extension, and than the manual install method worked.
Also i have found the reason why the zip files couldn't be uploaded and were giving me the error:
“Directory containing files to be uploaded could not be found!”
The reason is because i am on a mac and have auto unzip enabled, so everything i download gets unpacked after downloading.
Than when i repack the folder to a zip and rename it to ocmod.zip, something happens that just shouldn't (dunno what).
Anyway since i disabled auto unzip, i get the original zip file in my download folder i can install that without any problems.
For mac users which have the error “Directory containing files to be uploaded could not be found!” and have auto unzip enabled, go to Safari > Preferences > General tab > and uncheck "open safe files after downloading".
If you want to look inside the folder just make a copy and unzip it manually.
Maybe windows users might have the same problems with auto unzip and compress folder, than i guess the same solution might work but dunno how to disable auto unzip in windows.
Greetings,
Anton
It was just i converted the xml files from my extension so it was vqmod ready but the extension didn't work.
Later i did find that i used an extension that puts vqmod also in the extension installer, it seems that extension isn't working to well.
It does not make the extension installer accept vqmod files (which it should) and it bugs up the installer entirely.
At first i couldn't even upload the ocmod files by hand and install the .xml files using the installer as i should do with manual install.
Later i deleted the above mentioned extension, and than the manual install method worked.
Also i have found the reason why the zip files couldn't be uploaded and were giving me the error:
“Directory containing files to be uploaded could not be found!”
The reason is because i am on a mac and have auto unzip enabled, so everything i download gets unpacked after downloading.
Than when i repack the folder to a zip and rename it to ocmod.zip, something happens that just shouldn't (dunno what).
Anyway since i disabled auto unzip, i get the original zip file in my download folder i can install that without any problems.
For mac users which have the error “Directory containing files to be uploaded could not be found!” and have auto unzip enabled, go to Safari > Preferences > General tab > and uncheck "open safe files after downloading".
If you want to look inside the folder just make a copy and unzip it manually.
Maybe windows users might have the same problems with auto unzip and compress folder, than i guess the same solution might work but dunno how to disable auto unzip in windows.
Greetings,
Anton
Sorry to butt in but I think this is relevant for this topic, how does one resolve the conflict between vqmod ext and ocmod ext because this is becoming very common nowadays, resolving vqmod conflict was easy because all the files were in one place but now with ocmod also in the picture conflict resolution is becoming difficult or can someone develop an extension to convert one to the other and the user can choose what they prefer ?.
If some senior knowledgeable members like qahar and ip_cam can shed some light on this issue it will be great.
If some senior knowledgeable members like qahar and ip_cam can shed some light on this issue it will be great.
Regards,
Sun Systems
Industrial Electronics and Instrumentation
install ocmod mananger extension, which allows you to edit ocmods, this will allows you to fix any conflicts between extensions whether they are oc or vq
also when uploading ocmods, check the contents of what is being uploaded, i have seen quite a few extensions not made correctly as ocmod requires (install.xml and upload folder)
and if dev has simply packaged a vqmod as an ocmod, unzip and upload it as you normally would a vqmod,
dont assume devs have done everything correctly and file you download simply just needs to be uploaded,
a lot of time ocmod file is in the zip aswell, not the main zip you download
also when uploading ocmods, check the contents of what is being uploaded, i have seen quite a few extensions not made correctly as ocmod requires (install.xml and upload folder)
and if dev has simply packaged a vqmod as an ocmod, unzip and upload it as you normally would a vqmod,
dont assume devs have done everything correctly and file you download simply just needs to be uploaded,
a lot of time ocmod file is in the zip aswell, not the main zip you download
I am using ocmod editor/manager hence I know that there a conflict.
Basically the design of OC is very bad, everything necessary that should have been there in OC by default is missing.
Well each to his own...what can be done about it, OC developers don't care and users suffer.
PS: even if someone could make a extension for pointing out which mods are using the same common file/s then also it will be some relief.
Basically the design of OC is very bad, everything necessary that should have been there in OC by default is missing.
Well each to his own...what can be done about it, OC developers don't care and users suffer.
PS: even if someone could make a extension for pointing out which mods are using the same common file/s then also it will be some relief.
Regards,
Sun Systems
Industrial Electronics and Instrumentation
The main V.2.x problem is, that one now has two different Way's, of getting THINGS done, by adding/creating SOURCE Modifications, with the consequence, and great probabillity, that they possibly ACCESS / EAT AWAY each others ANCHOR's, in the Source.
From my personal Point of View, it's, simply spoken, just a TOP CLASS SREW-UP WAY, to achieve such. It will, and CAN NOT work, Users will experience new, 'unknown' Problems, like never before, and, as a consequence of such, Opencart V.2.x has a great chance to end up, and go into History, as a Master Business-Strategy-based Failure.
Remember the Alamo... , or Vista, or Win8, nobody ever was perfect!
But it's sure NOT up to me, to 'qualify' anything around Opencart. I am neither competent, codewise, nor authorized, to give any Comment on anything, regarding OC Development. I just don't use, from what I feel, it's not worth it, based on my Experience as well, from other Projects, going, and eventually ending in exactly the same way, as I mentioned above.
OcMod could have been a real, and usable, Replacement for VqMod, undoubtably, but only, if NO VQMOD would EVER have been installed, and so (index.php!) exist, exist, in OC v.2.x environments. Or THEN, VqMod would work with V.2.x flawless, probably, if NO OcMod related file, not even it's Routine, will ever be installed, and used, for ANYTHING, what (possibly) CANNOT be done by a VqMod.
OcMod is a Business Decision, as well, as a 'technical' Decision. Technically, from what I have been reading, OcMod add's it's 'content' (or 'results/changes' - whatever it is..), to the DB, VqMod add's it's changes to a TEMP FILE, beeing finally used as FINAL CONTENT OUTPUT-Part of the 'PAGE', to be sent to Visitors. This is a FUNDAMENTAL CHANGE, AND DIFFERENCE, of doing Things, meaning, that, by USE of BOTH 'Systems' it'll take a few STEPS, handling-wise, more, to build a Page, and send it to the Visitor.
And doing this, it may present a few more ERRORS, here and there, because VqMod accesses CODE, after it has been 'handled' by OcMod, probably, or in contrary, who know's, and whereever OcMod has DONE some things, or VqMod, to that Code, it will be, and LOOK, different, from what it should look, to make a VqMod work, or OcMod, wich-ever, in the first place.
I never tried it, just to make that clear, I just FIGURE, it must work, this way. Whatever it does, and however it works, it's just NOT a good way, to do it. NOT, as long as everbody can offer Mod's, unchecked, and not 'officially approved', to function in full. Because then, the entire OC Setup, including Marketing, and everything, would have to be changed, in full.
I am in no way trying to be, or sound, critical. It's not my business, to be, either, I'm not selling OC Mod's....
When Daimer-Benz decided, not longer to sponsor the SAUBER Race Team, but build their own Car, it was a Marketing Decision. Similar to OC with the v.2.x, they decided, to build their own 'override/overwrite' Function, and that's ok.
Everything else CANNOT be, actually, an OC(related) Problem. It's everybody's free decision, to participate, with/in OcMod's , or then, decide on something else, like VqMod, as well. Exactly, like deciding, to build an Offroader Car, or a Road Racer. But trying to achieve BOTH, with the same Car, is, technically, about as hard, as it is, to implement OcMod, and VqMod, together, over the entire pallette of Options, and Mod's, possibly ever available for OC 2.
The Problem is, WHO WILL TELL THE FOLKS, what to decide, and do?
Most of them expect everything to function, and work. They don't even realize, that MULTIPLE Versions exist. AND WHERE should they get such Information, in the first Place? Not even on Github, a NOT-Insider is able, to find out, wich Version what belongs to...
At least, the forum will be BUSY, very busy. And it is going to be more complicated, to find out, anything. About anything.
Lucky me, I don't know much, from praxis, and experience, on V.2.x! So, I will be less, and lesser, busy, to create images, and other crab, beeing able to concentrate more on my own work.
See, everything has it's sunny sides, as well
not always 'easy' to describe, not beeing of english origin..
you all have a great day!
Ernie
From my personal Point of View, it's, simply spoken, just a TOP CLASS SREW-UP WAY, to achieve such. It will, and CAN NOT work, Users will experience new, 'unknown' Problems, like never before, and, as a consequence of such, Opencart V.2.x has a great chance to end up, and go into History, as a Master Business-Strategy-based Failure.
Remember the Alamo... , or Vista, or Win8, nobody ever was perfect!

But it's sure NOT up to me, to 'qualify' anything around Opencart. I am neither competent, codewise, nor authorized, to give any Comment on anything, regarding OC Development. I just don't use, from what I feel, it's not worth it, based on my Experience as well, from other Projects, going, and eventually ending in exactly the same way, as I mentioned above.
OcMod could have been a real, and usable, Replacement for VqMod, undoubtably, but only, if NO VQMOD would EVER have been installed, and so (index.php!) exist, exist, in OC v.2.x environments. Or THEN, VqMod would work with V.2.x flawless, probably, if NO OcMod related file, not even it's Routine, will ever be installed, and used, for ANYTHING, what (possibly) CANNOT be done by a VqMod.
OcMod is a Business Decision, as well, as a 'technical' Decision. Technically, from what I have been reading, OcMod add's it's 'content' (or 'results/changes' - whatever it is..), to the DB, VqMod add's it's changes to a TEMP FILE, beeing finally used as FINAL CONTENT OUTPUT-Part of the 'PAGE', to be sent to Visitors. This is a FUNDAMENTAL CHANGE, AND DIFFERENCE, of doing Things, meaning, that, by USE of BOTH 'Systems' it'll take a few STEPS, handling-wise, more, to build a Page, and send it to the Visitor.
And doing this, it may present a few more ERRORS, here and there, because VqMod accesses CODE, after it has been 'handled' by OcMod, probably, or in contrary, who know's, and whereever OcMod has DONE some things, or VqMod, to that Code, it will be, and LOOK, different, from what it should look, to make a VqMod work, or OcMod, wich-ever, in the first place.



I never tried it, just to make that clear, I just FIGURE, it must work, this way. Whatever it does, and however it works, it's just NOT a good way, to do it. NOT, as long as everbody can offer Mod's, unchecked, and not 'officially approved', to function in full. Because then, the entire OC Setup, including Marketing, and everything, would have to be changed, in full.
I am in no way trying to be, or sound, critical. It's not my business, to be, either, I'm not selling OC Mod's....

When Daimer-Benz decided, not longer to sponsor the SAUBER Race Team, but build their own Car, it was a Marketing Decision. Similar to OC with the v.2.x, they decided, to build their own 'override/overwrite' Function, and that's ok.
Everything else CANNOT be, actually, an OC(related) Problem. It's everybody's free decision, to participate, with/in OcMod's , or then, decide on something else, like VqMod, as well. Exactly, like deciding, to build an Offroader Car, or a Road Racer. But trying to achieve BOTH, with the same Car, is, technically, about as hard, as it is, to implement OcMod, and VqMod, together, over the entire pallette of Options, and Mod's, possibly ever available for OC 2.
The Problem is, WHO WILL TELL THE FOLKS, what to decide, and do?

Most of them expect everything to function, and work. They don't even realize, that MULTIPLE Versions exist. AND WHERE should they get such Information, in the first Place? Not even on Github, a NOT-Insider is able, to find out, wich Version what belongs to...

At least, the forum will be BUSY, very busy. And it is going to be more complicated, to find out, anything. About anything.
Lucky me, I don't know much, from praxis, and experience, on V.2.x! So, I will be less, and lesser, busy, to create images, and other crab, beeing able to concentrate more on my own work.
See, everything has it's sunny sides, as well

not always 'easy' to describe, not beeing of english origin..
you all have a great day!
Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Who is online
Users browsing this forum: No registered users and 129 guests