Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Shopping cart stored in cookie or database? 
 
adityak
Member
 
Total Posts:  63
Joined:  2008-02-10
India
 

Where is the shopping cart data stored- in the database table or in cookies?

 
Magento Community Magento Community
Magento Community
Magento Community
 
SeL_
Magento Team
 
Avatar
Total Posts:  1140
Joined:  2007-10-10
Paris, France
 

In the database

 
Magento Community Magento Community
Magento Community
Magento Community
 
adityak
Member
 
Total Posts:  63
Joined:  2008-02-10
India
 

Can you tell me the table name?
Also is there a way to store this data in cookies?
I want to do this to store the cart for guest users

 
Magento Community Magento Community
Magento Community
Magento Community
 
SeL_
Magento Team
 
Avatar
Total Posts:  1140
Joined:  2007-10-10
Paris, France
 
adityak - 20 February 2008 04:17 AM

Can you tell me the table name?

There are several: their name begin with “sales_quote_entity"[...]

adityak - 20 February 2008 04:17 AM

Also is there a way to store this data in cookies?
I want to do this to store the cart for guest users

I don’t know.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mark_Kimsal
Sr. Member
 
Total Posts:  186
Joined:  2007-09-12
Michigan, USA
 
adityak - 20 February 2008 04:17 AM

Also is there a way to store this data in cookies?
I want to do this to store the cart for guest users

Why do you really want to store the cart in cookies?  It can’t be just for guest users.  What is the real reason?

Secondly, do you mean *in* the cookies?  Or in the session?

If you mean in the cookies, no, there’s no way to do it and there never will be.  If you mean the second option.  No, there’s no way to do it and there probably never will be.

 
Magento Community Magento Community
Magento Community
Magento Community
 
adityak
Member
 
Total Posts:  63
Joined:  2008-02-10
India
 

Ok i have deviated from the real purpose…
Actually I want to show the user the last item seen by him when he logs in.
(e.g. “the last mobile phone seen by u")
And if the user is a guest, obviously this info can only be stored in a cookie… correct me if im wrong

I want to store this information in a cookie

 
Magento Community Magento Community
Magento Community
Magento Community
 
zburnham
Member
 
Avatar
Total Posts:  69
Joined:  2007-11-07
Westborough, MA
 
adityak - 20 February 2008 05:46 AM

Ok i have deviated from the real purpose…
Actually I want to show the user the last item seen by him when he logs in.
(e.g. “the last mobile phone seen by u")
And if the user is a guest, obviously this info can only be stored in a cookie… correct me if im wrong

I want to store this information in a cookie

Correct me if I’m wrong, but wouldn’t that have privacy implications as well?  Not everyone uses separate logins on the same computer, and just to take the most benign example, do you want little Susie knowing you were just looking at something that she’s getting for her birthday?  At least if it’s a registered user, you can log out of your account and that information is no longer available.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mark_Kimsal
Sr. Member
 
Total Posts:  186
Joined:  2007-09-12
Michigan, USA
 
adityak - 20 February 2008 05:46 AM

Ok i have deviated from the real purpose…
Actually I want to show the user the last item seen by him when he logs in.
(e.g. “the last mobile phone seen by u")
And if the user is a guest, obviously this info can only be stored in a cookie.

This is going to be pretty involved, I’m not sure if there are classes to work with cookies that are not session cookies in Magento.  I guess you could use raw php setcookie() calls in the Catalog/controllers/ProductController::viewAction().  That is how you can easily save the information, but in order to show it, that is more complicated because it depends exactly on how you want to show it.

 
Magento Community Magento Community
Magento Community
Magento Community
 
adityak
Member
 
Total Posts:  63
Joined:  2008-02-10
India
 

I want to create a widget for this.
Any idea how i can create a new widget for this?
It should be like the mini-cart widget

 
Magento Community Magento Community
Magento Community
Magento Community
 
Michae1
Enthusiast
 
Total Posts:  826
Joined:  2007-08-31
 

Hi guys,

Recently Viewed Products functionality has been already implemented and will be avaialble in the next release grin

 
Magento Community Magento Community
Magento Community
Magento Community
 
adityak
Member
 
Total Posts:  63
Joined:  2008-02-10
India
 

Thats cool grin
Micheal, can u tell me when this next release is expected?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top