Changing the Period During Which Unordered Products Are Saved in the Cart
We no longer maintain the Knowledge Base since version 4.3.x. All the latest user and developer documentation for 4.3.x and newer versions is now available at docs.cs-cart.com.
By default CS-Cart saves such sessions for a period of 30 days.
To change it:
- In the core directory of your CS-Cart installation, open the fn.init.php file.
- In this file, find and replace the following part of code:
fn_define('CART_PRODUCTS_DELETE_TIME' , TIME - SECONDS_IN_DAY * 30);
with this one:
fn_define('CART_PRODUCTS_DELETE_TIME' , TIME - SECONDS_IN_DAY * DAYS);
where DAYS is the number of days you want. - Save the file.
By default CS-Cart saves such sessions for a period of 30 days.
To change it:
- In the core directory of your CS-Cart installation, open the fn.init.php file.
- In this file, find and replace the following part of code:
fn_define('CART_PRODUCTS_DELETE_TIME' , TIME - SECONDS_IN_DAY * 30);
with this one:
fn_define('CART_PRODUCTS_DELETE_TIME' , TIME - SECONDS_IN_DAY * DAYS);
where DAYS is the number of days you want. - Save the file.
By default CS-Cart saves such sessions for a period of 30 days.
To change it:
- In the core directory of your CS-Cart installation, open the fn.init.php file.
- In this file, find and replace the following part of code:
fn_define('CART_PRODUCTS_DELETE_TIME' , TIME - SECONDS_IN_DAY * 30);
with this one:
fn_define('CART_PRODUCTS_DELETE_TIME' , TIME - SECONDS_IN_DAY * DAYS);
where DAYS is the number of days you want. - Save the file.
By default CS-Cart saves such sessions for a period of 30 days.
To change it:
- In the core directory of your CS-Cart installation, open the fn.init.php file.
- In this file, find and replace the following part of code:
fn_define('CART_PRODUCTS_DELETE_TIME' , TIME - SECONDS_IN_DAY * 30);
with this one:
fn_define('CART_PRODUCTS_DELETE_TIME' , TIME - SECONDS_IN_DAY * DAYS);
where DAYS is the number of days you want. - Save the file.
By default CS-Cart saves such sessions for a period of 30 days.
To change it:
- Open the user.php file located in the core directory of your CS-Cart installation.
- Find and replace the following part of code there:
fn_define('CART_PRODUCTS_DELETE_TIME' , TIME - 60 * 60 * 24 * 30);
with this one:
fn_define('CART_PRODUCTS_DELETE_TIME' , TIME - SECONDS' * MINUTES * HOURS * DAYS);
where SECONDS, MINUTES, HOURS, DAYS are the numbers of seconds, minutes, hours and days you want. - Save the file.
By default CS-Cart saves such sessions for a period of 2 weeks.
To change it:
- In the core directory of your CS-Cart installation, open the config.php file.
- In this file, find and replace the following part of code:
// Sessions storage live time define('SESSIONS_STORAGE_ALIVE_TIME', SECONDS_IN_DAY * 7 * 2); // 2 weeks
with this one:
// Sessions storage live time define('SESSIONS_STORAGE_ALIVE_TIME', SECONDS_IN_DAY * 7 * NUMBER_OF_WEEKS);
where NUMBER_OF_WEEKS is the required number of weeks. - Save the file.
By default CS-Cart saves such sessions for a period of 2 weeks.
To change it:
- In the core directory of your CS-Cart installation, open the config.php file.
- In this file, find and replace the following part of code:
// Sessions storage live time define('SESSIONS_STORAGE_ALIVE_TIME', SECONDS_IN_DAY * 7 * 2); // 2 weeks
with this one:
// Sessions storage live time define('SESSIONS_STORAGE_ALIVE_TIME', SECONDS_IN_DAY * 7 * NUMBER_OF_WEEKS);
where NUMBER_OF_WEEKS is the required number of weeks. - Save the file.
By default CS-Cart saves such sessions for a period of 2 weeks.
To change it:
- In the core directory of your CS-Cart installation, open the config.php file.
- In this file, find and replace the following part of code:
// Sessions storage live time define('SESSIONS_STORAGE_ALIVE_TIME', SECONDS_IN_DAY * 7 * 2); // 2 weeks
with this one:
// Sessions storage live time define('SESSIONS_STORAGE_ALIVE_TIME', SECONDS_IN_DAY * 7 * NUMBER_OF_WEEKS);
where NUMBER_OF_WEEKS is the required number of weeks. - Save the file.
By default CS-Cart saves such sessions for a period of 2 weeks.
To change it:
- In the core directory of your CS-Cart installation, open the config.php file.
- In this file, find and replace the following part of code:
// Sessions storage live time define('SESSIONS_STORAGE_ALIVE_TIME', SECONDS_IN_DAY * 7 * 2); // 2 weeks
with this one:
// Sessions storage live time define('SESSIONS_STORAGE_ALIVE_TIME', SECONDS_IN_DAY * 7 * NUMBER_OF_WEEKS);
where NUMBER_OF_WEEKS is the required number of weeks. - Save the file.