CSCI 6962: Server-side Design and Programming Shopping Carts and Databases.

Slides:



Advertisements
Similar presentations
Welcome to WebCRD.
Advertisements

Build a database I: Design tables for a new Access database
Order by Item: Adding Items to an Order Order by Item: Adding Items This tutorial will cover the step by step process for adding items to a submitted.
Materials Data Curation System
09/04/2015Unit 2 (b) Back-Office processes Unit 2 Assessment Criteria (b) 10 marks.
1 Welcome To Siebel Training Welcome To Siebel Training.
Data Structures: A Pseudocode Approach with C
Database A collection of related information stored on a computer and organized in a manner that allows access, retrieval, and use of that data.
Accounting Databases Chapter 2 The Crossroads of Accounting & IT
Databases and Database Management Systems
LESSON 17 PREPARED BY MANJU. database A database is a collection of related information Access is the Microsoft Office database program that enables you.
Create Forms Lesson 5. Software Orientation Creating Forms A form is a database object –enter, edit, or display data from a table or query Providing.
CSCI 6962: Server-side Design and Programming
Microsoft Azure Introduction ISYS 512. Microsoft Azure Microsoft Azure is a cloud.
CSCI 6962: Server-side Design and Programming JDBC Database Programming.
1 Advanced Computer Programming Databases. Overview What is a database? Database Basics Database Components Data Models Normalization Database Design.
Relational Database Concepts. Let’s start with a simple example of a database application Assume that you want to keep track of your clients’ names, addresses,
1 Lesson 22 Getting Started with Access Essentials Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
CSCI 6962: Server-side Design and Programming Support Classes and Shopping Carts.
Introduction to Accounting Information Systems
SHOPPING CARTS CHAPTER 19. E-COMMERCE Typically, an e-commerce site will have public pages and admin pages.
Microsoft Access Get a green book. Page AC 2 Define Access Define database.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
My final project was creating an online weapon store. In my store I have two different lists of weapons, melee and fire. I have a registration form where.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
Lesson 17 Getting Started with Access Essentials
1 OPOL Training (OrderPro Online) Prepared by Christina Van Metre Independent Educational Consultant CTO, Business Development Team © Training Version.
Once you have located the ISBN you would like to purchase, click “Add to Cart”. You will get a pop-up window showing the item you’ve added. If you are.
Lecture 8 – Cookies & Sessions SFDV3011 – Advanced Web Development 1.
Microsoft Access You will need a pen/pencil.. What is Microsoft Access? Access is a database management system.  Create a database, add/change delete.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
Database Design. Referential Integrity : data in a table that links to data in another table must always work in such a way that following the link will.
1 Outline  What is a Primary Key?  AutoNumber primary keys  Single-field primary keys  Composite-field primary key  About Foreign Keys  Database.
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
Chapter 14 - Designing Data Access Classes1 Chapter 14 Designing Data Access Classes.
Microsoft Access Intro Class 6 Relationships.
SESSION 3.1 This section covers using the query window in design view to create a query and sorting & filtering data while in a datasheet view. Microsoft.
CSC 240 (Blum)1 Introduction to Data Entry, Queries and Reports.
Introduction to Database using Microsoft Access 2013 Part 7 November 19, 2014.
What have we learned?. What is a database? An organized collection of related data.
COMPREHENSIVE Access Tutorial 12 Managing and Securing a Database.
Microsoft Access. Microsoft access is a database programs that allows you to store retrieve, analyze and print information. Companies use databases for.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. Adding a new field 1Right click the table name and select design view 2Type the field information at the end.
DAY 15: ACCESS CHAPTER 1 Rahul Kavi October 6,
CSCI 6962: Server-side Design and Programming Java Server Faces Scoping and Session Handling.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
ADVANTAGES OF DATA BASE MANAGEMENT SYSTEM. TO BE DICUSSED... Advantages of Database Management System  Controlling Data RedundancyControlling Data Redundancy.
CSCI 6962: Server-side Design and Programming JSF DataTables and Shopping Carts.
Database Objective Demonstrate basic database concepts and functions.
CS 149 Advance Perl Final Project Implementing an E-commerce shopping cart using cookies Presented by Dzung Tran.
1 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID Cisco Confidential Cisco Cross Reference Tool (CCRT) User’s Guide Version.
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
 Empowers to your customer  Product Rating and its Management in Ecommerce Framework  Product Reviews and Management: Collecting customer opinion about.
 Shopping Basket  Stages to maintain shopping basket in framework  Viewing Shopping Basket.
The Rent-A-Dress Database
System Modules Overview
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
ITM © Port,Kazman 1 ITM 352 Cookies. ITM © Port,Kazman 2 Problem… r How do you identify a particular user when they visit your site (or any.
Throughout this slide show there will be hyperlinks (highlighted in blue) follow the hyperlinks to navigate to the specified Topic or Figure. Hyperlinks.
CUSTOMER ORDERING QUICK REFERENCE GUIDE November 9, 2015.
Navigation: If the tutorial opens up in your web browser, simply click your mouse to advance to the next slide. Use the “Backspace”
Microsoft Access CS 110 Fall Entity Relationship Model Entities Entities Principal data object about which information is to be collectedPrincipal.
MySQL Tutorial. Databases A database is a container that groups together a series of tables within a single structure Each database can contain 1 or more.
Login & administration page
First Time Punch-Out Registration
Developing a Model-View-Controller Component for Joomla Part 3
Database Fundamentals
Welcome to WebCRD.
Grocery Store Outline csc242 – web programming.
Presentation transcript:

CSCI 6962: Server-side Design and Programming Shopping Carts and Databases

Outline Cart IDs Creating a customer table Structure of the carts table

Storing Shopping Carts Goal: Store cart in database between user sessions – If first user visit, cart empty – If user has created cart previously, retrieve it One solution: – Assign each cart a unique cart ID – Associate cart ID with key user field (such as ) – Store all cart items in single table – Each record contains corresponding cart ID

Customer Table Key field (such as address) Cart ID of current cart Perhaps other customer information (address, etc.)

Signing In User prompted to “sign in” with key field – Will probably also ask for password (separate table) Query customer table for the key field If not found, generate new cart ID – Should not be session ID (too public) – Can be random number – Query database to make sure not already used Insert new record with Key field and cart ID

Carts Database Big table containing all items for all customers – Cart ID of the cart item belongs to – Item ID of that item – Other information that cannot be recreated from the item ID (such as quantity)

Loading a Cart Query Customer table for key field on user sign in If user record found, extract corresponding cart ID Query Carts table for all records with that cart ID Loop through results: – Extract the Item ID from that record – Extract other information (such as quantity) – Use ID to construct an item object – Add that object to the Cart object

Storing a Cart Key: When Cart ID generated/retrieved, store in session For each cart item insert record into Carts table: – Cart ID (from session) – Item ID (from cart item) – Other necessary data (quantity, etc.)

Storing a Cart Problem: That user may already have a cart stored in the table – Simply adding the current cart would create duplicate records for items saved previously Solution: – Delete all records from Carts table with the same Cart ID (removing previous cart) – Store all items in current cart as new records Make sure both done as single transaction