CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Customizing Bookstore in CCS and PHP

Print topic Send  topic

Author Message
Mark
Posted: 10/10/2002, 11:20 AM

Two issues...

1. after the registration page is filled out it is not loging the user in.
so when you try to add an item to the cart it fails. After logging in the new user it's fine

2. Is there a way to empty the cart at check out,logout or browser close.

new to php so any help would be appriciated

Thanks
markb
Posted: 10/10/2002, 11:45 AM

Does anyone have any exaples of calculating taxes and shipping
xbill
Posted: 10/10/2002, 12:11 PM

For 1)- I found that the session variables
for UserID and GroupID were not set.

I used the after insert event in the registration
page to manually set the variables. With CCS
you can even use some of the sample actions
to retrieve a value for the control.

For 2)- you can use the same approach. Just put
the delete code in the right event. (for
example on check out- add an event that does
the SQL delete call). I haven't found a good
way to detect browser window close- so you have
to design around it.

For the other points- look at the calculation
on the total field as a starting point. You can
code some custom sql to do the calculation or
a snippet of PHP code.

For the non-studio version of codecharge- there were
some good discussions around using Verisign Payflow
and Paypal to finish out the shopping cart- with some
calculations- but they may have not been
forward ported to CCS.

-bill


   


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

Web Database

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.