How To: Set How Long A Cart Stores Products That Haven’t Been Ordered

By default, a cart stores the products, that haven’t been ordered, for 2 weeks.

To change how long that period is, complete the following steps:

  1. Go to the root directory of your CS-Cart installation.
  2. Open the config.php file.
  3. Find the following part of the code:
// Sessions storage live time
define('SESSIONS_STORAGE_ALIVE_TIME',  SECONDS_IN_DAY * 7 * 2); // 2 weeks
  1. Replace it with this code:
// Sessions storage live time
define('SESSIONS_STORAGE_ALIVE_TIME',  SECONDS_IN_DAY * 7 * NUMBER_OF_WEEKS);

Note

Replace NUMBER_OF_WEEKS with the required number of weeks.

  1. Save the file.

Important

You’ll need to reapply these changes after you upgrade to a new version of CS-Cart/Multi-Vendor.


Big CS-Cart Update is Here Experience the New Admin Panel with Dark Theme