Skip to main content
Menu
Search
Start Here

Update SalePro to a New Version

Back up first, then update from the dashboard's new-version notice with your purchase code. If no notice appears, update manually. Check sales, stock and reports afterwards.

There are two ways to update SalePro:

  • One-click update from the dashboard. Use this when SalePro tells you a new version is available.
  • Manual update by replacing the files. Use this when no notice appears, or the one-click update fails.

Both take 10 to 30 minutes, depending on your server. Plan the update for a quiet time, when no one is selling.

Before you update#

Warning: Always take a backup first. An update changes your files and your database. A backup is the only way back if something goes wrong.

  1. Back up the database. Go to Settings > Backup Database and download the file. Also download a copy from your hosting (for example cPanel > phpMyAdmin > Export); see Back up and restore SalePro.
  2. Back up the files. In your hosting file manager, compress the whole SalePro folder and download the zip. It contains your .env file (your settings), uploaded logos and product images, and documents.
  3. Read the release notes for the new version in the Changelog. They list new settings, new permissions, and anything you must do after the update.
  4. Check your support period, if you'll need help. Updates are free, but help with an update needs an active support period.
  5. Have your purchase code ready. It's on your CodeCanyon Downloads page: click Download > License certificate & purchase code.

Update with one click#

  1. Log in as an admin and open the Dashboard.
  2. When a new version is out, a notice at the top says A new version … has been released. Click Click here.
  3. The New Release page shows the new version and its change log. Read it.
  4. Enter your Purchase Code and click Upgrade.
  5. Wait. The button stays disabled while SalePro downloads the new version, replaces the files and updates the database. Don't close the page or click again.
  6. When it finishes, you'll see Version Upgraded Successfully. Refresh the page with Ctrl + F5, or Cmd + Shift + R on Mac, so your browser loads the new design and scripts.
  7. Do the checks after updating.

If no notice appears on the dashboard#

The notice only shows when your installed version can be updated directly to the latest one.

  • Already on the latest version: the New Release page says Your current version is … and Please wait for upcoming version. Nothing to do.
  • Your version is too old for a direct update: update manually (see below). Follow each version's upgrade notes in order, for example 6.2 to 6.3.0, then 6.3.0 to 6.3.2.
  • Your server can't reach the update server: some hosts block outgoing connections. Update manually, or ask your host to allow outgoing HTTPS.

If you see "Wrong Purchase Code !"#

  • Copy the code again from CodeCanyon, with no spaces at the start or end.
  • Use the code for SalePro, not for an add-on (SaaS, eCommerce, WooCommerce, API and so on).
  • If it still fails, open a ticket at lion-coders.com/support with your purchase code.

Update manually#

Use this when the one-click update isn't available or didn't finish.

  1. Back up the database and files (see Before you update).
  2. Download the latest SalePro zip from CodeCanyon (Downloads > SalePro > All files & documentation) and extract it on your computer.
  3. In your hosting file manager, upload the new files over your SalePro folder. Keep these from your current installation; don't overwrite them:
    • the .env file;
    • the storage folder;
    • your uploads inside public: logo, images, documents, and any other folder you uploaded files to.
  4. Update the database. In your hosting Terminal (cPanel > Terminal, or SSH), go to the SalePro folder and run:
    php artisan migrate --force
    php artisan optimize:clear

    If you have no terminal access, ask your hosting provider to run these two commands for you. You can also ask LionCoders support during your support period.

  5. Open .env and set VERSION= to the new version number, for example VERSION=6.3.2.
  6. If your host has a PHP OPcache or Restart PHP option, use it. Otherwise wait a few minutes before testing.
  7. Do the checks after updating.

Tip: If you added modules (add-ons) such as eCommerce, upload their latest versions too, as their release notes say. An old add-on with a new SalePro can show errors.

Checks after updating#

Take five minutes to confirm everything works before staff start selling:

  1. Dashboard opens and shows today's figures.
  2. POS: make a small test sale, print the receipt, then delete or return it.
  3. Products: open the product list and one product's edit page.
  4. Stock: a product's quantity is the same as before the update.
  5. Reports: open the sale report for today.
  6. Settings: open General Setting, POS Settings and Invoice Settings. Save once if the release notes mention a new setting.
  7. Roles: if the release notes list new permissions, give them to the right roles in Settings > Role Permission. Admin and Owner usually get them automatically.
  8. Online store (if you use eCommerce): open the storefront and add a product to the cart.

If something fails, see If something goes wrong.

If something goes wrong#

What you see What to do
Oh server just snapped! or a blank page Run php artisan optimize:clear. Then check storage/logs/laravel.log for the last error and send it with your ticket.
The page looks broken or old Refresh with Ctrl + F5. Clear any CDN or hosting cache (Cloudflare, LiteSpeed).
Maximum execution time exceeded during the one-click update Your host stopped the update midway. Update manually from step 3, then run the two commands.
An error mentions a table or column The database update didn't run. Run php artisan migrate --force.
Permission denied or files couldn't be written Make storage and bootstrap/cache writable (755 for folders, 644 for files), then try again.
Something still doesn't work Restore your backup (files and database) to get back to the old version. Then open a ticket with the error and your version numbers.

SalePro SaaS#

In SalePro SaaS, update from the landlord (super-admin) dashboard, not from a tenant. The update also updates every tenant's database.

See the SalePro SaaS documentation for the platform update steps.

Did this guide solve your problem?

If something is unclear, tell support which guide and section you were following.

Get help
WhatsApp