Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Empty Cart after session


doberman1971

Recommended Posts

Hi,

 

Sorry if this is an easy one but at present when customers log out without completing the checkout process, next time they log in they still have their basket contents from the previous session.

 

Is their a way to empty cart contents when a session ends if they have not made a purchase.

 

Thanks,

 

Jonathan

Link to comment
Share on other sites

Hi,

 

Sorry if this is an easy one but at present when customers log out without completing the checkout process, next time they log in they still have their basket contents from the previous session.

 

Is their a way to empty cart contents when a session ends if they have not made a purchase.

 

Thanks,

 

Jonathan

 

normally, baskets of signed in customers are saved in the database and only emptied when checked out. When they come back, the basket is restored from the database.

You can ofcourse alter this by not saving the basket to the table.

That is done in the shopping_cart.php class.

Treasurer MFC

Link to comment
Share on other sites

normally, baskets of signed in customers are saved in the database and only emptied when checked out. When they come back, the basket is restored from the database.

You can ofcourse alter this by not saving the basket to the table.

That is done in the shopping_cart.php class.

 

 

 

Thanks for the pointer boxtel,

 

Regards,

 

Jonathan

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...