Smack Digital Inc.

How To Keep Customer Carts On X-Cart Logout

Posted by and last updated Feb 1, 2014 12:36 AM

This simple X-Cart code change will prevent users shopping carts from being cleared when they log out of X-Cart.

By default X-Cart clears a users cart contents when they log out. This can cause frustration for customers, particularly when they want to log out to complete the order as a different username.

This simple change will allow X-Cart users to retain their shopping carts while logging out.

Open include/login.php

$cart = '';

Replace with:
// WCM - Retain cart on logout
#$cart = '';
// / WCM - Retain cart on logout

About the Author

Jonathan Peters Jonathan's founder of Smack Digital, a digital strategy agency that creates and executes online business success for executives who are highly motivated to quickly increase their market share. With more than two decades of experience on the web for clients ranging from non-profits to billion dollar enterprises, Jonathan's an expert in web development, eCommerce, software programming, search engine optimization and social media marketing.

Browse By Category

RSS Feeds

Don't miss out! Subscribe to our RSS Feeds to receive instant notification when new entries are added.

RSS Feed for All Categories
RSS Feed for X-Cart How-Tos
We choose our clients selectively.
Let's talk success. Apply to work with us.
Apply toWork With Us
Apply toWork With Us