VirtueMart Forum

VirtueMart 2 + 3 => Virtuemart Development and bug reports => Topic started by: Avexa on January 29, 2018, 00:32:48 am

Title: Cart is empty after reopen browser
Post by: Avexa on January 29, 2018, 00:32:48 am
Hello,

I have discovered following thing - I go to shop -> add product to cart -> close browser -> open browser -> cart is empty. Is it correct behavior? Is is issue in my e-shop or is it virtuemart feature? Is any way how to remember items in cart for x-hours? Is any extension or so?

Thank you in advance.




Title: Re: Cart is empty after reopen browser
Post by: Cococoder on January 29, 2018, 13:36:33 pm
The product you added to your cart are held in a cookie on your local machine. If the cart appears empty, the first thing to verify is that cookie are not cleared when the browser closed, manually or otherwise.
Title: Re: Cart is empty after reopen browser
Post by: GJC Web Design on January 29, 2018, 13:41:48 pm
if u had registered/logged in the cart contents are remembered

there is also an abandoned cart extension
Title: Re: Cart is empty after reopen browser
Post by: Avexa on January 29, 2018, 20:08:21 pm
And if am I not logged, no cart cortent is held? Isnt an issue? I would expect that cart will held content at least one session...but in my case nothing is held after browser is closed and then opened.

I have found any abandoned cart extensions, but please do you know, if they are able to hold content in session? Thank you in advance.

if u had registered/logged in the cart contents are remembered

there is also an abandoned cart extension
Title: Re: Cart is empty after reopen browser
Post by: jenkinhill on January 29, 2018, 23:20:54 pm
I have tested this already, unless you clear cookies the cart content is retained on simply closing the browser and re-opening it, even if a couple of days later.
Title: Re: Cart is empty after reopen browser
Post by: Milbo on January 30, 2018, 23:46:50 pm
It is not a cookie! It is one time stored in the session table. And when you are registered, it is stored in the cart table.
Title: Re: Cart is empty after reopen browser
Post by: anantmaks on February 07, 2018, 09:35:38 am
If allowed can I bring your attention to one of the topics I mentioned here:

https://forum.virtuemart.net/index.php?topic=139343.msg489483#msg489483

Also, to my knowledge, some worldwide trusted e-commerce like Magento and others also keeps cart data for guest users in their database, that helps them to build achieve additional functionalities of the abandoned cart. Why VirtueMart is only keeping it and taking it from the session.
Title: Re: Cart is empty after reopen browser
Post by: webkul on February 07, 2018, 09:42:03 am
Hi,

Please have a look at our  Virtuemart Abandoned Cart,  https://store.webkul.com/Joomla-Virtuemart-Abandoned-Cart.html

Some of the features are:
Send auto-reminders about abandoned carts.
Use Virtuemart coupons only.
Virtuemart coupon applied to the cart will only be applicable to that cart.
Any change in the cart will remove the Virtuemart coupon from the cart.
Different email templetes for different stages like first-time email templete, reminder emil templete and Virtuemart coupon emil templete.
Track all abandoned carts of store users.
Easily create and edit email templates.
Title: Re: Cart is empty after reopen browser
Post by: Avexa on March 12, 2018, 23:38:59 pm
Hello, I have already bought VM Abandoned Cart..but it doesnt solve my issue I guess, cart is still empty after reopen browser. Or is any way how to remmember the cart longer then in session?  Or cart is remembered only in logged users? There is many people who put items to cart afternoon and finish order on evening for example...
Title: Re: Cart is empty after reopen browser
Post by: Milbo on March 19, 2018, 08:12:01 am
The cart is stored as long the session lasts. That means, you could also increase the sessiontime to a day or so and then carts for guests are "automatically stored". But so long there exists no method, which uses a cookie to get an already stored cart. A non registered user should just register to get get such features.
Title: Re: Cart is empty after reopen browser
Post by: Avexa on January 13, 2019, 01:11:25 am
Hello, problem is when you want to use remarketing for cart. To target customers with remarketing is nonsense when they go back to e-shop with empty cart.

Btw I have this issue even when I have session time 2800 and storing it in DB. Or is any other setting how to remember the cart?

Thank you
Title: Re: Cart is empty after reopen browser
Post by: GJC Web Design on January 13, 2019, 16:23:59 pm
There are plenty of 3rd party ext to deal with stuff like this - see Istraxx and DayCounts

and also concerns with auto saving carts without some sort of registration or permission with GDPR

Imagine it was saved as a browser cookie .. I am ordering ladies underwear ( again!)  - get interrupted - close the browser -- wife  goes on the family PC and goes to the same shop and finds my unfinished cart...
Must break quite a few privacy laws
The solution is as Max says to have the client register
Title: Re: Cart is empty after reopen browser
Post by: Studio 42 on January 13, 2019, 17:21:39 pm
amazon use local or web storage for anonymous user for some datas. But this need specific javascipt(and cookies) and is only compatible with some browser see https://caniuse.com/#feat=namevalue-storage
Note that local storage have not same size limit for each browser and is not really GDPR compliant.