Installation
Requirements
Section titled “Requirements”- 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).
- No cron job and no external service.
Install
Section titled “Install”- Download the add-on package (
kv_post_purchase_upsell-1.0.0.zip). - In the admin panel, go to Add-ons > Manage add-ons, click the plus button and upload the zip.
- Activate the add-on in the list.
- Open the add-on settings, go to the License tab and enter your license key. You can also enter your CS-Cart Marketplace license number in the Manage add-ons list. Until the license is valid, offers are not shown on the order page (see Configuration).
- Go to Marketing > Post-purchase offers and create your first offer.
The package creates three tables (kv_ppu_offers, kv_ppu_events, kv_ppu_rate), two administrator privileges (View / Manage post-purchase offers), a menu entry under Marketing and a block on the order confirmation page. Uninstalling removes the tables, the settings and the privileges. Orders that already contain offer items are not changed.
The offer block uses the checkout:order_confirmation hook of the Responsive theme. Bright and Nova (4.21+) inherit it, and so do themes built on Responsive. If you choose Top in the settings, a small script moves the block under the thank-you message. Without JavaScript, the block stays below the payment instructions.
Upgrading
Section titled “Upgrading”Upload the new zip over the installed add-on (Add-ons > Manage add-ons, plus button), or install the Upgrade Center package. On the next admin request, the add-on restores any missing tables, settings and language variables by itself.
Tested on
Section titled “Tested on”- CS-Cart Ultimate 4.17.2 and Multi-Vendor 4.17.2: install, uninstall, reinstall, same order and quick checkout flows, rules, countdown, A/B split, status changes, report, storefront, admin panel and vendor panel (CLI end-to-end and HTTP end-to-end suites), license gate.
- PHP 8.1 and PHP 8.3 syntax and compatibility checks (testVersion 7.4 – 8.3). Templates compile on Smarty 4. The code uses no Smarty or PHP feature that 4.21 (Smarty 5, PHP 8.3) removed.
- CS-Cart 4.21 / 4.22: the add-on uses hooks that exist from 4.17.2 onwards with the same arguments. It was not run on a live 4.21 / 4.22 store for this release.