c# - shopping cart system and calculating total price -


I want to integrate online booking and payment system online into my website. I have gone through the differnt paper of the shopping cart in google, but I could not have been clear from any of that. So far, I have created a table in the database which includes session_ID and DAT product_id. When a user clicks to add to the cart, it will be stored in that table. I have even built up shopping carts but now my problem is how to calculate the total value and how to keep that total column in the database. As I have researched now, I need to create a table in which the user's total cost or database includes all the information along with the session, but I do not know when to enter that table and which user has booked it Have done it. I have a great dilemma. Please help me for this.

Just a hint you have to use two tables for it.

  Master table - To store common info (Billo, date, gradeotle, billdisk, etc.) Details Table - To keep information about items for each purchase (item number, unitpiece, netmount etc.)  

When an item is selected, insert that item into the details table and then update the granadot in the master table.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -