Author Topic: Expiring cart after few hours.  (Read 345 times)

anonunder

  • Beginner
  • *
  • Posts: 14
  • A beginner
Expiring cart after few hours.
« 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.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26993
  • Always on vacation
    • Jenkin Hill Internet
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.0.9935 on Joomla 3.8.12 PHP 7.0.31
Testing VM 3.4.0.9941 on Joomla 3.8.12

anonunder

  • Beginner
  • *
  • Posts: 14
  • A beginner
Re: Expiring cart after few hours.
« Reply #2 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...

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26993
  • Always on vacation
    • Jenkin Hill Internet
Re: Expiring cart after few hours.
« Reply #3 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...
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.0.9935 on Joomla 3.8.12 PHP 7.0.31
Testing VM 3.4.0.9941 on Joomla 3.8.12

anonunder

  • Beginner
  • *
  • Posts: 14
  • A beginner
Re: Expiring cart after few hours.
« Reply #4 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

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26993
  • Always on vacation
    • Jenkin Hill Internet
Re: Expiring cart after few hours.
« Reply #5 on: May 25, 2018, 11:33:22 am »
The session is different from the data stored in the ###_virtuemart_carts table.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.0.9935 on Joomla 3.8.12 PHP 7.0.31
Testing VM 3.4.0.9941 on Joomla 3.8.12

anantmaks

  • Beginner
  • *
  • Posts: 43
  • Indian Software Engineer
Re: Expiring cart after few hours.
« Reply #6 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.
Anant Garg
Ghaziabad, India