Changing the period during which unordered products are saved in the cart

By default CS-Cart saves such sessions for a period of 30 days.

To change it:

  1. Open the user.php file located in the core directory of your CS-Cart installation.
  2. 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.
  3. Save the file.

Noticed an error in the article or it is not clear enough? Any suggestions to improve it? Please let us know by filling in the feedback form. Click here.