Hi,
How can I ensure that when a user logs out all of the products in the shopping basket are removed. So that next time when a user logs in they are met with an empty shopping basket.
I'm using version 1.4.9.1.
Many Thanks
Dave
Hi Dave
Open
/system/library/customer.php
Find and remove this code
That will stop the cart loading any products previously saved
Open
/system/library/customer.php
Find and remove this code
Code: Select all
if (($customer_query->row['cart']) && (is_string($customer_query->row['cart']))) {
$cart = unserialize($customer_query->row['cart']);
foreach ($cart as $key => $value) {
if (!array_key_exists($key, $this->session->data['cart'])) {
$this->session->data['cart'][$key] = $value;
} else {
$this->session->data['cart'][$key] += $value;
}
}
}
That will stop the cart loading any products previously saved
Or you can make it optional for the customer:
http://forum.opencart.com/viewtopic.php ... 447#p81447
http://forum.opencart.com/viewtopic.php ... 447#p81447
Who is online
Users browsing this forum: No registered users and 16 guests