Author Topic: shopping cart lifetime  (Read 1972 times)

oleg_4vm

  • Beginner
  • *
  • Posts: 5
  • A beginner
shopping cart lifetime
« on: September 27, 2019, 18:48:19 pm »
Hi, all!

Can't find the lifetime of a shopping cart in the virtuemart settings. May be anybody can help me?

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 546
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: shopping cart lifetime
« Reply #1 on: September 27, 2019, 19:16:02 pm »
Check the session lifetime in Joomla configuration, tab 2.

Default is 15 minutes, you might want to set that higher.
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

oleg_4vm

  • Beginner
  • *
  • Posts: 5
  • A beginner
Re: shopping cart lifetime
« Reply #2 on: September 27, 2019, 19:26:21 pm »
Check the session lifetime in Joomla configuration, tab 2.

Default is 15 minutes, you might want to set that higher.

Hm. I thought about this. But i left my browser tab open for a 30 min and after this refreshed the page and my shopping cart is stay intact.
So, i concluded that session lifetime in Joomla isn't related to shopping cart lifetime.
Was my experiment wrong :-)?

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 546
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: shopping cart lifetime
« Reply #3 on: September 27, 2019, 20:32:01 pm »
There is a keepalive script working, so if your browser tab is open, the keepalive will do it's work.
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

oleg_4vm

  • Beginner
  • *
  • Posts: 5
  • A beginner
Re: shopping cart lifetime
« Reply #4 on: September 27, 2019, 20:48:23 pm »
There is a keepalive script working, so if your browser tab is open, the keepalive will do it's work.

Hm. Thus, while i keep tab open my shopping cart is alive and after browser tab close a shopping cart live 15 min, right?

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3048
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: shopping cart lifetime
« Reply #5 on: September 28, 2019, 11:53:12 am »
Try testing, i will cost you approx ,20 minutes.
Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

oleg_4vm

  • Beginner
  • *
  • Posts: 5
  • A beginner
Re: shopping cart lifetime
« Reply #6 on: September 29, 2019, 08:38:57 am »
Thank everybody for the help!

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9815
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: shopping cart lifetime
« Reply #7 on: September 29, 2019, 13:00:50 pm »
and you could do other things while waiting...  :P
And the answer was?

The point of this forum is the exchange of information and the increase of knowledge.....
If someone Googles this post they will be none the wiser...
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

oleg_4vm

  • Beginner
  • *
  • Posts: 5
  • A beginner
Re: shopping cart lifetime
« Reply #8 on: September 30, 2019, 14:04:45 pm »
and you could do other things while waiting...  :P
And the answer was?

A session is infinite while a tab is open and after closing expire after joomla session lifetime.
StefanSTS said about this above.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9815
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: shopping cart lifetime
« Reply #9 on: September 30, 2019, 14:05:20 pm »
Thank you for confirming
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

mirrorsandglass

  • Jr. Member
  • **
  • Posts: 166
  • Time Is Precious, Waste It Wisely
Re: shopping cart lifetime
« Reply #10 on: February 27, 2020, 20:51:18 pm »
Not quite true in my case if the order has got to the stage of being written to the DB, i.e. in a pending state, then the cart will be re-populated by the saved DB details if the same user logs on.
At least in my case this is true. I have had test orders that were in pending state in the DB from months ago be added to the cart. Unless this is some other browser setting?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9815
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: shopping cart lifetime
« Reply #11 on: February 27, 2020, 22:47:59 pm »
No -- this is separate from sessions etc -- if the cart is abandoned it is written to the  designated cart table so that it can be reloaded when that user logs on again.
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

kess

  • Beginner
  • *
  • Posts: 12
  • Currently using VM3.8.4.10 on Joomla3.9.22 PHP 7.2
Re: shopping cart lifetime
« Reply #12 on: October 16, 2020, 11:20:07 am »
Hello

but the data stored in the cart and in the db have an expiry date?

I have the problem that registered user returns after a few days
and the cart is empty.

what can be the reason?

Thanks for your help

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3276
  • VirtueMart Version: 3.8.4
Re: shopping cart lifetime
« Reply #13 on: October 16, 2020, 12:54:10 pm »
cart data stored in the cart table for registered users does not expire
regards
A

Joomla 3.9.20
php 7.3

ermes

  • Jr. Member
  • **
  • Posts: 78
Re: shopping cart lifetime
« Reply #14 on: Yesterday at 16:10:00 »
Another question about this topic: if i login with "remember me" active and i close the browser without login, when i return on the website i'm already logged in but the cart is empty. How can i fix this bug? My customers close the cart after weeks (b2b shop).
Can you help me please?