You can enable your customers to download your add-ons and upgrades directly from the Marketplace. This article describes how to make the add-on and upgrade packages and upload them to the Marketplace.
<version>1.1.0</version>
<core_edition>
element of the <compatibility>
section.
CS-Cart:
<compatibility> <core_edition>ULTIMATE</core_edition> </compatibility>Multivendor:
<compatibility> <core_edition>MULTIVENDOR</core_edition> </compatibility>Important
If you don’t specify
<core_edition>
, the Marketplace will display compatible editions depending on what you specify in the Product field on the Features tab of the add-on editing page.
<core_version>
element of the <compatibility>
section:<compatibility> <core_version> <min>4.3.2</min> <max>4.3.6</max> </core_version> </compatibility>
marketplace_license_number
setting to the add-on scheme:<settings> <sections> <section id="general"> <items> <item id="marketplace_license_number"> <type>input</type> </item> </items> </section> </sections> </settings>
marketplace_license_number
to the add-on’s .po file:msgctxt "SettingsOptions::sample_addon::marketplace_license_number" msgid "Marketplace license number" msgstr "Marketplace license number"
A distribution package is an archive that contains all the files of an add-on. This package can later be uploaded to the Marketplace. The customers then download the archive and install the add-on.
$ cscart-sdk addon:export addon_name /path/to/addon_directory /path/to/cscartNote
You can use
addon:export
and some other cscart-sdk commands to develop your addon in a separate repository.
$ cd /path/to/addon_directory
$ tar -czf addon_name.tgz *
Open the add-on editing page on the Marketplace.
Switch to the Features tab and update the Product, Compatible versions, and Localisations fields.
If the package you’re uploading is compatible with the versions that are not specified here, add those versions in those fields.
Click Save.
The version of the uploaded package is taken from the <version>
element of addon.xml. If you haven’t specified compatibility information in addon.xml, it will be taken from the Features tab.
If the Compatibility section of the newly uploaded package is empty, go to the Features tab and update the Product, Compatible versions, and Localisations fields, save your changes and reupload the add-on package.
Once you upload the distribution package, its addon.xml file will be checked for errors. If there are no errors, the package will appear on the Product packages tab. If the status of the package is Active, customers will be able to download it from the Marketplace.
Note
You can also deliver add-ons and upgrades to the Marketplace from your Git repository.
Questions & Feedback
Have any questions that weren't answered here? Need help with solving a problem in your online store? Want to report a bug in our software? Find out how to contact us.