Post by eakhan » Tue Jul 07, 2020 5:15 am

Hi guys!

I am new about opencart, I could downloaded opencart and it works ,only problem is when ı try to instal an extension for example a language , the systems ask file type ocmod.zip and I dont know what is it .. I just have .zip files , how can ı make a .zip file to ocmod.zip ? Anyone else who can help me about that matter?

Newbie

Posts

Joined
Sun Jul 05, 2020 1:19 am

Post by OSWorX » Tue Jul 07, 2020 2:45 pm

Simply rename mypackage.zip > mypackage.ocmod.zip

Custom Development | Individuelle Entwicklung | Support & Bugfixes

Image Image Image


User avatar
Guru Member
Online

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by netruxa » Tue Jul 07, 2020 8:40 pm

or unzip mypackage.zip and upload all files to server manually

User avatar
New member

Posts

Joined
Fri Dec 16, 2016 1:34 pm


Post by OSWorX » Wed Jul 08, 2020 2:59 pm

netruxa wrote:
Tue Jul 07, 2020 8:40 pm
or unzip mypackage.zip and upload all files to server manually
Thumb answer!
Why?
If an Extension is offered as abc.ocmod.zip it mostly will contain also a install.xml which is needed by the internal installer.
If the files are only copied, that will lead to NOTHING.

So forget that stupid answer.

On the other hand, if an extension is offered as abc.zip only, it will contain in 99% of all cases several additonal .zip-files.
Usually named like:
abc-opencart-15x.zip
abc-opencart-2.x.ocmod.zip
abc-opencart-3.x.ocmod.zip

So extract first the .zip package locally and check if it contain files like described above.
If, go ahead and install the package with the integrated installer which fit with the used OpenCart version.

If not, see it a files called readme.txt does exist.
If, read it!
If not: ask the developer how he mean to install his lousy extension.

In general: if the extension is a .zip files only (without ocmod.zip) renaming it is useless.

Custom Development | Individuelle Entwicklung | Support & Bugfixes

Image Image Image


User avatar
Guru Member
Online

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by netruxa » Thu Jul 09, 2020 3:12 am

OSWorX wrote:
Wed Jul 08, 2020 2:59 pm
Thumb answer!
Why?
If an Extension is offered as abc.ocmod.zip it mostly will contain also a install.xml which is needed by the internal installer.
If the files are only copied, that will lead to NOTHING.

So forget that stupid answer.
1. usually languages files dont have xml inside
2. if TS have a problem with rename zip files, he also will be trouble with install ocmod) (ftp settings, etc...)

User avatar
New member

Posts

Joined
Fri Dec 16, 2016 1:34 pm


Post by OSWorX » Thu Jul 09, 2020 3:40 am

netruxa wrote:
Thu Jul 09, 2020 3:12 am
.. he also will be trouble with install ocmod) (ftp settings, etc...)
Nobody needs FTP-Settings anymore since OpenCart 3.0.x (that was the bad periode of OpenCart 2.x).

Custom Development | Individuelle Entwicklung | Support & Bugfixes

Image Image Image


User avatar
Guru Member
Online

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by sw!tch » Sat Jul 11, 2020 4:31 am

netruxa wrote:
Tue Jul 07, 2020 8:40 pm
or unzip mypackage.zip and upload all files to server manually
Not the best practice, there is a reason for the uploader.

When you upload an extension containing files via the uploader, Opencart keeps track of the files uploaded in the database (oc_extension_path). Hence when you go to delete the extension via the interface Opencart removes those files.

On a manual upload and to add to what OSWorX stated - If you wanted to remove the extension, then you would need to go fishing around for the files you manually uploaded and remove them.

So in short... Just package an ocmod.zip and use the uploader.

Backup and learn how to recover before you make any changes!
Full Stack Web Developer :: Contact via PM for custom work.


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm
Location - USA

Post by OSWorX » Sun Jul 12, 2020 5:07 pm

sw!tch wrote:
Sat Jul 11, 2020 4:31 am
When you upload an extension containing files via the uploader, Opencart keeps track of the files uploaded in the database (oc_extension_path). Hence when you go to delete the extension via the interface Opencart removes those files.
Only true when OpenCart 3.x is used.
Not with OpenCart 2.x

Custom Development | Individuelle Entwicklung | Support & Bugfixes

Image Image Image


User avatar
Guru Member
Online

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria
Who is online

Users browsing this forum: No registered users and 1 guest