Hi,
I've created a new page where I wrote the following sql to post directly to the cart
$sql_cart = "insert into " . TABLE_CUSTOMERS_BASKET . "
(customers_id, products_id, customers_basket_quantity,
customers_basket_date_added)
values ('" . (int)$_SESSION['customer_id'] . "', '".$product_id."', '" .
"1', '" . date('Ymd') . "')";
The quantity will always be 1 in my case.
The script updates the cart correctly in the db, however, I do not see the changes in cart index.php?main_page=shopping_cart unless I logout and log back in.
Can anyone help?
Bookmarks