• Post Reply Bookmark Topic Watch Topic
  • New Topic

Add items to a wishList / no register user  RSS feed

 
Isaac Ferguson
Ranch Hand
Posts: 1063
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I would like to find the best possible solution for this case. There is an E-Commerce application, and I would like to be able to add products to the wishList, without the need to be registered.

I am thinking in using the session, because the articles that are choosen should remain in the cart, at least during the session spanlife.


Any idea, please?

Regards, Isaac

 
Dave Tolls
Ranch Foreman
Posts: 3068
37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Presumably the wishlist only lasts for the session?
 
Isaac Ferguson
Ranch Hand
Posts: 1063
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At the moment I think till there, although it would be much better when (without registering) it would last over the session.

Any idea, please?
 
Isaac Ferguson
Ranch Hand
Posts: 1063
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a different perspective, for example an user is registered and log in the system, then he adds few products in the wishList, and leaves. Later on, he comes back and check the page without logging add some articles to the cart(without logging) and then he decides to buy so he loggin. The old articles should be retrieved and the new ones added on top of them.

I am thinking in just to make a query to ask the data for the articles, and get the new ones from the Session.

Sounds that as good approach for you all?
 
Paul Clapham
Sheriff
Posts: 22841
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The idea of adding items to a cart or a wish-list without logging in doesn't make much sense to me. If the user doesn't log in, how do you know who they are? You need to know that to add items to their cart or their wish-list.
 
Paul Clapham
Sheriff
Posts: 22841
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And for me the idea of a wish-list which goes away a few minutes after I close my browser doesn't make sense either. A wish-list contains items that I might want to buy at some time in the future, doesn't it?
 
Paul Clapham
Sheriff
Posts: 22841
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And also the idea that if I get called away from the computer for more than half an hour, then when I come back I've been signed out and my cart has been emptied -- that doesn't sound like a very good e-commerce design to me.
 
Isaac Ferguson
Ranch Hand
Posts: 1063
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Finally the idea is when for example, when an user is registered and logged and has some articles in the DB.  And then he visits again, without logging and adds some products to the wishlist (session) and then logging to buy them that new products in the session go on top of the ones that there in the DB already.
 
Paul Clapham
Sheriff
Posts: 22841
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I know that's the idea. My question about that idea is, if the user isn't logged in then you don't know who they are. So how are you supposed to add items to the user's wish-list if you don't have any user logged in?

Or perhaps I misunderstand the design. Perhaps there's only one wish-list and it's for all users, so anybody can connect to your server and add items to the one and only wish-list?
 
Dave Tolls
Ranch Foreman
Posts: 3068
37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The way it normally works is there's a session cart if the user isn't logged in.
That will go away if the session expires and the user hasn't logged in.

When the user logs in, part of the process involves merging the existing shopping cart and/or wishlist (they are two different things, by the way) with whatever has been persisted for that user in the database.

As I say, the shopping cart and a wish list are not the same thing.
The former is stuff the user is planning on buying on their next time through the checkout.  It's the same as the contents of your shopping trolley at the supermarket.
The wish list is something you quite fancy to buy at some point, but not yet, so you note it down somewhere.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!