News:

Looking for documentation? Take a look on our wiki

Main Menu

shopping cart lifetime

Started by oleg_4vm, September 27, 2019, 18:48:19 PM

Previous topic - Next topic

oleg_4vm

Hi, all!

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

StefanSTS

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

Quote from: StefanSTS 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.

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

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

Quote from: StefanSTS 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.

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

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


GJC Web Design

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 https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

oleg_4vm

Quote from: GJC Web Design on September 29, 2019, 13:00:50 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

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

WebStuff

#10
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

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 https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

kess

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

cart data stored in the cart table for registered users does not expire
Regards
A

Joomla 3.10.11
php 8.0

ermes

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?