CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 shopping cart

Print topic Send  topic

Author Message
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?
View profile  Send private message
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
View profile  Send private message
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?
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.