mousmoul
Posts: 11
|
| Posted: 03/17/2006, 11:03 AM |
|
DOes anyone know what the idea behind the cookie shopping_cart_id in the bookstore example is?
|
 |
 |
peterr
Posts: 5971
|
| Posted: 03/17/2006, 11:16 AM |
|
It's used to save and retrieve shopping cart records that belong to one specific person/customer.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
mousmoul
Posts: 11
|
| Posted: 03/17/2006, 2:56 PM |
|
Peter,
Thank you for the response.
But how do you make is user specific?
One can add items to the shopping cart without loging in! So, how would it associate it to a user?
When I add items to the shopping cart this field in the database has the value of 3. What does 3 represent?
Of coarse, the Admin portion of the website is has a login, which only allows admin in. I don't see other logins for customers!
Am I missing something?
|
 |
 |
Nader
|
| Posted: 03/17/2006, 3:20 PM |
|
Oh duh, uses cookies!
Is there a way to convert this example to use login instead of cookies?
If the admin of the website whats to know who has items in there shopping carts and also not have the items in the shopping cart specific to one computer/browser, this would be useful.
Also, in the Admin Orders page there is has a user field that has all the entries set as "admin". How would one make this reflect a user?
|
|
|
 |
Nader
|
| Posted: 03/17/2006, 3:34 PM |
|
BTW, mousmoul is Nader
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 03/17/2006, 10:36 PM |
|
Yes, just use the standard UserID session variable instead of the cookie. This should be much simpler so you can remove all the cookie code from the Header page and replace with the UserID session variable.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |