VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: anonunder on May 21, 2018, 20:24:11 PM

Title: Expiring cart after few hours.
Post by: anonunder on May 21, 2018, 20:24:11 PM
Hello,

I have a problem with my VM(latest version of VM and joomla), when I add a new product to the cart and when i close the tab, after 1-2hours, cart is empty.

I extented sessiton time for user login, but doesn't work.

There is a live website, but it is B2B site, and you can't add to the cart to test it.

I need a solution to store it in cookies, locally or somehow to fix this.
Title: Re: Expiring cart after few hours.
Post by: jenkinhill on May 21, 2018, 22:43:00 PM
See http://forum.virtuemart.net/index.php?topic=139375
Title: Re: Expiring cart after few hours.
Post by: anonunder on May 24, 2018, 13:59:18 PM
How can I know that it will work?

My main problem is, when i shut down the computer and turn it up again, cart is empty.

But, on my other websites I can add and it will stay there for months...
Title: Re: Expiring cart after few hours.
Post by: jenkinhill on May 24, 2018, 15:31:14 PM
If the shopper is logged in and has products in the cart the db table ###_virtuemart_carts is populated, so that if they leave and come back even weeks later, once they log in again the cart is populated with the same products. Just look in the db...
Title: Re: Expiring cart after few hours.
Post by: anonunder on May 25, 2018, 00:41:52 AM
I see my session in database, but sometimes it will be empty with no reason, after 1 day, or if I turn off my computer
Title: Re: Expiring cart after few hours.
Post by: jenkinhill on May 25, 2018, 11:33:22 AM
The session is different from the data stored in the ###_virtuemart_carts table.
Title: Re: Expiring cart after few hours.
Post by: anantmaks on May 25, 2018, 13:23:50 PM
VirtueMart doesn't keep user cart in the database for guest users, I raised this topic earlier that it should save guest user carts as much other e-commerce platforms do it, and it finally helps admin to track abandon carts. Make sure you are not looking for guest user cart to remain existing.