An upgrade package is an archive that contains all the files necessary to upgrade a customer’s add-on automatically. Normally this archive includes:
Upgrade packages can be installed in the Upgrade Center in one of the ways:
This article tells how add-on developers can create upgrade packages for their add-ons.
Create an upgrade package as described in this article. Most importantly, please follow the recommended structure of an add-on.
Starting with version 4.4.1, CS-Cart has a built-in Marketplace connector, so you don’t need to create your own upgrade connector and add it your add-on.
Important
If you need the Marketplace connector code for some reason, we described it in an earlier version of this article (version 4.3.x).
Open the add-on editing page on the Marketplace.
Go to the Product packages tab.
Click Upload upgrade.
Use the File field to select the archive you created.
Specify the versions in the Upgrade from and Upgrade to fields.
(Optional) Enter Package description.
Click Create.
Important
To be able to build upgrade packages via the Marketplace, please follow the recommended structure of an add-on.
Open the add-on editing page on the Marketplace.
Switch to the Product packages tab.
Click Build upgrade.
Specify the versions in the Upgrade from and Upgrade to fields.
(Optional) Enter Package description.
Click Create.
The list of upgrade packages is available on the Product packages tab of your add-on:
A manually-uploaded upgrade package has the Active status by default, i.e. it is available to customers. Upgrades built with the Marketplace have the Disabled status by default, i.e. they are not available to customers.
Customers who downloaded an add-on from the Marketplace, installed it, and specified the marketplace license number, will see the active upgrades in the Upgrade Center.
If you want to test a disabled upgrade package, add the following line to your store’s local_conf.php:
$config['resources']['marketplace_url'] .= '?access_token=/*your token here*/';
You’ll find the access token on your profile editing page in the Marketplace:
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.