Post by b&p » Fri Feb 08, 2019 1:29 pm

Hi, I'm in the process of revising my extensions to work with Opencart v3.X and I am not very clear on the procedure for cloud marketplace publishing. I cannot find the spec anywhere. My extension archive structure normally looks like this:

Code: Select all

extension.zip
            |_
            license.txt
            readme.txt
            screenshots
    extension.ocmod.zip 
                       |_ upload/
                        install.xml
On extension publishing page there is a note that requirements for cloud marketplace are:
  • Only support OpenCart version 3.0 or above.
  • The folder name must be named "upload" / The file name must be "install.xml"
  • The compression should be in Zip format.
What I did is create to downloads, one is the complete archive for OC v3.X, and the other just the ocmod.zip for OC v3.X + Cloud
But none of my modules are listed in the cloud marketplace yet, over a week now.

Am I doing this correctly?

User avatar
b&p
New member

Posts

Joined
Wed Jun 08, 2011 10:18 pm

Post by OSWorX » Fri Feb 08, 2019 5:53 pm

b&p wrote:
Fri Feb 08, 2019 1:29 pm
Hi, I'm in the process of revising my extensions to work with Opencart v3.X and I am not very clear on the procedure for cloud marketplace publishing. I cannot find the spec anywhere. My extension archive structure normally looks like this:

Code: Select all

extension.zip
            |_
            license.txt
            readme.txt
            screenshots
    extension.ocmod.zip 
                       |_ upload/
                        install.xml
On extension publishing page there is a note that requirements for cloud marketplace are:
  • Only support OpenCart version 3.0 or above.
  • The folder name must be named "upload" / The file name must be "install.xml"
  • The compression should be in Zip format.
What I did is create to downloads, one is the complete archive for OC v3.X, and the other just the ocmod.zip for OC v3.X + Cloud
But none of my modules are listed in the cloud marketplace yet, over a week now.

Am I doing this correctly?
No.
Simply because (as you already wrote) the allowed structure for the cloud (and that should be also for the standard installation) has to be:
* name of file, e.g.: my-extension-OC-3.1.x.ocmod.zip
├ upload (folder) > include complete folder and file structure of your extension (see allowed structure below)
└ install.xml (file)
Nothing else (no readme, screenshots, and so on).

The extension structure itself must follow this allowed structure to be written into:
'admin/controller/extension/',
'admin/language/',
'admin/model/extension/',
'admin/view/image/',
'admin/view/javascript/',
'admin/view/stylesheet/',
'admin/view/template/extension/',

'catalog/controller/extension/',
'catalog/language/',
'catalog/model/extension/',
'catalog/view/javascript/',
'catalog/view/theme/',

'system/config/',
'system/library/',
'image/catalog/'
And the admin permission checks also these folders (only they are allowed):
'extension/dashboard',
'extension/analytics',
'extension/captcha',
'extension/extension',
'extension/feed',
'extension/fraud',
'extension/module',
'extension/payment',
'extension/shipping',
'extension/theme',
'extension/total'
If your extension has no folders and files, but should be able to install by the internal installer, only the install.xml and an empty folder upload inside the zip-file my-extension-OC-3.1.0.x.ocmod.zip has to be placed.

Now you may argue, that your extension structure cannot follow that structure.
Wrong!
It can - no further discusssion.

Now you may be clever (because you do not want to follow that structure) and recommend your users the installation of another obstruse extension which overrules that permissions (available on the market).
Forget it!
If your extension cannot follow that structure, you should not doing that job.

But finally, what suprise me is the fact, you want to develop an extension and cannot read the existing code and the marketplace advice?
Strange!

Forum Rules [en]: viewtopic.php?f=176&t=200480
Forumregeln [de]: viewtopic.php?f=37&t=114208
Commercial Request: viewforum.php?f=88

Image


User avatar
Guru Member

Posts

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

Users browsing this forum: No registered users and 2 guests