Category: Articles
Posted: Feb 2, 2010
Synopsis: This simple x-cart code change will prevent users shopping carts from being cleared when they log out of x-cart.
Want to allow your x-cart users to keep their shopping cart contents upon log out? This simple change will modify your x-cart to do so:
Open include/login.php
FIND:
if ($utype == 'C')
$cart = "";
REPLACE WITH:
// WCM - Don't Clear Cart
#if ($utype == 'C')
#$cart = "";