Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
rudebox (Guest)
rudebox (Guest)
I'm having a persistent problem where the cart does not clear after a successful transaction.
 
Everything works great and the order is successfully processed and completed, and the status is updated correctly. However, the shopping cart never clears until I logout or manually click "clear the cart".
 
My order_final.php script contains the following code to clear the cart, but it doesn't seem to work. I even tried removing the "if" portion of it to force it, but still it doesn't clear.
// empty cart only if order was placed without any errors
if (!strlen($error_message)) {
set_session("shopping_cart", "");
set_session("session_coupons", "");
}
 
 
Any help would be greatly appreciated!!!
 
Last modified: 11 Oct 2006 12:57 PM
 
Anjula
Anjula
Hi,
 
Your problem with the cart may be connected with the following: you use different domain names for the shop and for making orders. In this case your session is not processed and that’s why you are unable to automatically clear the session. In other words, if you use, for example, http://www.domain.com (as the site URL) and https://secure.domain.com/ (as Secure URL), then two different sessions appeared. So, if you have the same domain names, there won’t be any problems.
In case the domain names are different but are located on one server, then it is possible to transfer a session from one domain into another, however currently there is no such feature in ViArt shop.
 
With best regards,
ViArt Support Team