Skip to content

Installation

  • CS-Cart, CS-Cart Ultimate, Multi-Vendor or Multi-Vendor Ultimate 4.17.2 up to 4.22.x.
  • PHP 7.4 to 8.3 (the range your CS-Cart version supports).
  • A cron job (recommended) or, as a fallback, an admin user who opens the panel now and then.
  1. Download the add-on package (kv_paid_memberships-1.0.0.zip).
  2. In the admin panel open Add-ons, Manage add-ons, click the plus button and upload the zip.
  3. Activate the add-on in the list.
  4. Open the add-on settings, License tab, and enter your license key (or the CS-Cart Marketplace license number in the Manage add-ons list). Without a valid license new memberships are not granted, see Configuration.
  5. Set up the cron job from the Cron tab (see below).

The package creates four tables (kv_pm_plans, kv_pm_members, kv_pm_orders, kv_pm_log), three editable e-mail templates, one admin menu entry (Customers, Memberships) and one promotion condition. Uninstalling removes the tables and the settings. Customers keep the user groups they have, because those are core data.

Run the pass every 15 minutes:

*/15 * * * * php /path/to/your/store/admin.php --dispatch=kv_paid_memberships.cron

Or call the URL shown in the settings (it contains a secret key). Without a cron, the pass runs after admin page views, at most every 5 minutes, which is enough for a quiet store but not for a store nobody opens.

Upload the new zip over the installed add-on (Add-ons, Manage add-ons, plus button) or install the Upgrade Center package. The add-on repairs missing tables, settings, language variables and e-mail templates itself on the next admin request.

  • CS-Cart Ultimate 4.17.2 and Multi-Vendor 4.17.2 (install, upgrade, uninstall, reinstall, order flow, storefront, admin, vendor panel, license gate).
  • PHP 8.1 and PHP 8.3 syntax and compatibility checks; Smarty 4 and Smarty 5 safe templates.
  • CS-Cart 4.21 and 4.22: no 4.21-only function is used without a guard; the compatibility notes are in the changelog.