VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: murat on October 31, 2011, 19:05:53 PM

Title: Shopping cart when logout
Post by: murat on October 31, 2011, 19:05:53 PM
If i push logout on cart page the product disappears from cart and i see cart without any product. Is it a bug or it should be so? Virtuemart 2.0 RC-k and Joomla 1.7
Title: Re: Shopping cart when logout
Post by: PRO on October 31, 2011, 19:42:14 PM
I dont think this is going to be a bug, but maybe someone else can answer.
Title: Re: Shopping cart when logout
Post by: Milbo on October 31, 2011, 19:46:05 PM
It is for cleaner programming, then we see very fast, when we forgot to add an "if empty". It is simpel to show an empty cart with a link back to the main store or so. But it is also part of style. I dont know what is better. It is easy and i would say that a template beginner can do it within some minutes.
Title: Re: Shopping cart when logout
Post by: murat on October 31, 2011, 20:13:04 PM
I think it would be better if after logout user can see the product that was in cart or should be redirected on main page of virtuemart.
Title: Re: Shopping cart when logout
Post by: CranialBlaze on October 31, 2011, 20:29:06 PM
The items in the carts would of been saved in the users session, loging out creates a new session for a gueat user.  Its quite logical the cart would be empty. The items where after all part of the cart for a user who is now offline.



Sent from my Nexus S using Tapatalk
Title: Re: Shopping cart when logout
Post by: Milbo on November 01, 2011, 11:33:39 AM
Yes, the cart content is stored in the session. therefore even in the database (joomla session table). The only way to create a new session is to close the old session. So this idea " think it would be better if after logout user can see the product " is "impossible".