Connecting Tech Pros Worldwide Help | Site Map

Am I missing anything from this shopping cart?

blyxx86's Avatar
Familiar Sight
 
Join Date: Nov 2006
Posts: 255
#1: Jan 3 '08
Ok everyone,
I am attempting to set up a pseudo shopping cart for people to request specific items. There is no transaction taking place, just an e-mail notification and also a simple addition to a few database tables.

I have created some instructions to help me get to the end result.

Firstly, the information in the tables we are accessing is related in a many-to-one relationship between tblRequest and tblRequestDetails.

That being said, here are the steps I think I need to take to ensure the information is placed properly into the database.
  1. Trim all user input.
  2. Check to make sure all required values are entered.
  3. Test the Primary Key is not being duplicated (user tries to enter request twice).
  4. Store values to "RequestArray"
  5. If "RequestArray"contains information show the RequestDetail information (Model/Quantity Selection).
  6. Trim user entered information.
  7. Check that all required values are entered.
  8. Store RequestDetail information to "RequestDetailArray"
  9. Allow looping until user clicks "Checkout"
  10. Perform validation once again with Primary Key of "RequestArray"to ensure no other user has entered the same request.
  11. Run SQL command to enter information into database "RequestArray"entered first, then values from "RequestDetailArray" looped until empty).
  12. Send e-mail notification to desired parties.
  13. Clear "RequestArray"and "RequestDetailArray"
  14. Forward to desired page.
  15. Missing anything?
jhardman's Avatar
Moderator
 
Join Date: Jan 2007
Location: logan, utah
Posts: 2,690
#2: Jan 3 '08

re: Am I missing anything from this shopping cart?


looks good to me. Very thorough.

Jared
blyxx86's Avatar
Familiar Sight
 
Join Date: Nov 2006
Posts: 255
#3: Jan 4 '08

re: Am I missing anything from this shopping cart?


Quote:

Originally Posted by jhardman

looks good to me. Very thorough.

Jared

Now comes the hard part... actually coding it. I suppose this should be a checklist of sorts for me.

At least for adding models, removing and editing should be another story. I have the hardest time understanding how to 'edit' arrays.
Reply


Similar ASP / Active Server Pages bytes