View Single Post
  #6  
Old 08-30-2013, 10:09 AM
 
ipointadam ipointadam is offline
 

Newbie
  
Join Date: Dec 2012
Posts: 2
 

Default Re: Clear cart if cusotmer logs out

Quote:
Originally Posted by cflsystems
It has to be custom coded to do that. But items in cart for one custom do not affect quantity for others - only after order is placed

The way my system works is it immediately makes the QTY change. The client is complicated. Though for anyone else looking for the solution, this is what I did...

Open {XCART DIRECTORY}/includes/login.php

find
Code:
if ($mode == 'logout') {

add this right after it
Code:
db_query("UPDATE $sql_tbl[customers] SET cart='' WHERE username='$username'");
__________________
4.1.5
Reply With Quote