COMP3241 E-Commerce Technologies Richard Henson University of Worcester November 2014.

Slides:



Advertisements
Similar presentations
Debugging ACL Scripts.
Advertisements

JQuery MessageBoard. Lets use jQuery and AJAX in combination with a database to update and retrieve information without refreshing the page. Here we will.
Microsoft® Access® 2010 Training
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
NMED 3850 A Advanced Online Design February 25, 2010 V. Mahadevan.
COMP106 Assignment 2 – A new interface design Proposal 6.
Servlets and a little bit of Web Services Russell Beale.
An Overview of Database Access on the Web An Overview of Database Access on the Web Using ASP and Microsoft Database Technology Sheffield Hallam University.
1 The World Wide Web. 2  Web Fundamentals  Pages are defined by the Hypertext Markup Language (HTML) and contain text, graphics, audio, video and software.
Proposal 13 HUMAN CENTRIC COMPUTING (COMP106) ASSIGNMENT 2.
Creating Web Page Forms
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
CO1552 Web Application Development HTML Forms. Websites can be made more interactive by providing facilities for users to provide data To get user entered.
COMP3121 E-Commerce Technologies Richard Henson University of Worcester November 2010.
Project Four Forms Discuss form processing Describe the difference between client-side and server-side form processing Add a horizontal rule to a Web page.
Lecturer: Ghadah Aldehim
COMP3241 E-Commerce Technologies Richard Henson University of Worcester October 2012.
Tutorial 10 Adding Spry Elements and Database Functionality Dreamweaver CS3 Tutorial 101.
What is Sure BDCs? BDC stands for Batch Data Communication and is also known as Batch Input. It is a technique for mass input of data into SAP by simulating.
COMP3241 E-Commerce Technologies Richard Henson University of Worcester November 2012.
COMP3121 E-Commerce Technologies Richard Henson University of Worcester November 2012.
MySQL + PHP.  Introduction Before you actually start building your database scripts, you must have a database to place information into and read it from.
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
PHP TUTORIAL. HISTORY OF PHP  PHP as it's known today is actually the successor to a product named PHP/FI.  Created in 1994 by Rasmus Lerdorf, the very.
Moodle (Course Management Systems). Assignments 1 Assignments are a refreshingly simple method for collecting student work. They are a simple and flexible.
Introduction to Sequence Diagrams
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
06/10/ Working with Data. 206/10/2015 Learning Objectives Explain the circumstances when the following might be useful: Disabling buttons and.
COMP3121 E-Commerce Technologies Richard Henson University of Worcester November 2011.
COMP3241 E-Commerce Technologies Richard Henson University of Worcester October 2014.
C# Tutorial -1 ASP.NET Web Application with Visual Studio 2005.
© 2010 Delmar, Cengage Learning Chapter 8 Collecting Data with Forms.
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.
ASP/ASP.NET: Tricks and Tips How to get Microsoft’s Programming Language to work for you By Wade Tripp Park University
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
Basic & Advanced Reporting in TIMSNT ** Part Two **
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
ASP.NET The Clock Project. The ASP.NET Clock Project The ASP.NET Clock Project is the topic of Chapter 23. By completing the clock project, you will learn.
Java server pages. A JSP file basically contains HTML, but with embedded JSP tags with snippets of Java code inside them. A JSP file basically contains.
1 UNIT 13 The World Wide Web Lecturer: Kholood Baselm.
1 Building FORMS In When a visitor enters information into a web form displayed in a web browser and clicks the submit button, the information is sent.
1 Advanced Computer Programming Lab Calculator Project.
The Problem of State. We will look at… Sometimes web development is just plain weird! Internet / World Wide Web Aspects of their operation The role of.
COMP3121 E-Commerce Technologies Richard Henson University of Worcester December 2011.
COMP3121 E-Commerce Technologies Richard Henson University of Worcester November 2010.
CS 149 Advance Perl Final Project Implementing an E-commerce shopping cart using cookies Presented by Dzung Tran.
COMP3121 E-Commerce Technologies Richard Henson University of Worcester November 2011.
Office of Housing Choice Voucher Program Voucher Management System – VMS Version Released October 2011.
 Shopping Basket  Stages to maintain shopping basket in framework  Viewing Shopping Basket.
©SoftMooreSlide 1 Introduction to HTML: Forms ©SoftMooreSlide 2 Forms Forms provide a simple mechanism for collecting user data and submitting it to.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
 How we should structure our checkout and order process?  Checkout and Order Process of our framework  Stages of Checkout and Order Process.
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 1: Introduction to IS2803 Rob Gleasure
COMP3241 E-Commerce Technologies Richard Henson University of Worcester December 2014.
VB.NET and Databases. ADO.NET VB.Net allows you many ways to connect to a database. The technology used to interact with a database or data source is.
3M Partners and Suppliers Click to edit Master title style USER GUIDE Supplier eInvoicing USER GUIDE The 3M beX environment: Day-to-day use.
1 UNIT 13 The World Wide Web. Introduction 2 The World Wide Web: ▫ Commonly referred to as WWW or the Web. ▫ Is a service on the Internet. It consists.
Officiating Management Software.
Emdeon Office Batch Management Services This document provides detailed information on Batch Import Services and other Batch features.
COMP3121 E-Commerce Technologies Richard Henson University of Worcester December 2009.
COMP3241 E-Commerce Technologies
Cookies BIS1523 – Lecture 23.
Tutorial 7 – Integrating Access With the Web and With Other Programs
COMP3357 Managing Cyber Risk
Presentation transcript:

COMP3241 E-Commerce Technologies Richard Henson University of Worcester November 2014

Week 9: Mechanism of Shopping System, Part 3 n Objectives:  Use a pre-defined control to send data to either the shopping cart or a database, depending on the way the parameters are used  Use a further control to save order data to a database table for use in customer fulfillment  Provide a final link to a payment system that will allow the order to be processed and physically sent to the customer

You’ve already achieved a lot: n Database n Scripts n Controls n Connectivity n Just one more step (online order…) and you’ll be there!

You’ve designed and created a database containing suitable tables and fields…

Used WebXelCart controls to create a “click to buy” system complete with shopping cart

(Perhaps…) Used webxelcart controls to complete a login/register customer details system? n If still mystified all should become clear by the end of this lecture…

Why all that “Validation” stuff? n Two reasons:  make sure the data is of the right type e.g. telephone number not put in address text box  make sure only data of the right type gets sent to the cart or database »could get memory overflow… »or failed Database write… »(Neither would impress the customer!)

What sort of Button should be used? n Data being presented on a HTML form… n Data being presented on a HTML form… n It should therefore be extracted with a HTML submit button near the bottom of the form… before n It should therefore be extracted with a HTML submit button near the bottom of the form… before  will send the data to a location specified on the form “header” (e.g. runat=“server”)  not to be confused with buttons used to run a small chunk of code

What happened to the customer data anyway? n Once you completed the last exercise, you might have expected new order data to be written to the database…  but nothing appeared in “orders” n All the data for the order now resides in the cart:  orderID  customerID  the various aspects of the order needed for the onscreen invoice

And the rest of the Data? n What actually happened was that  the order data was written to the cart under the label “orderID”  and the customer details were written to the customers table n The system was not programmed to write order data (yet…) »this won’t happen until they have acknowledge the onscreen order (i.e. they agree to pay…)

Why “Save to Cart”? n Data quickly saved locally  and easily accessible when it needs to be extracted »e.g. address fields for screen invoice  If screen invoice not accepted, and “customer” leaves »“customer” data easily removed… »also good for “data protection” – personal data only ever saved to memory

Passing the CustomerID Parameter Customer Page WriteToDB scripts Customer ID value sent as e.g. “CustomerID” fields sent To shopping cart Shopping Cart cust data

Saving and Displaying the Order n On Screen Invoice is displayed (summary.aspx) n Action only happens when user clicks on “Pay Now”…  Orderdetail Record written  again uses the WriteToDB control  writes “OrderLine” Cart fields to appropriate Table

Writing the Order Details to Screen (and Database) Write to DB control Product ID value Shopping Cart Remote DB Contains all data needed to write orderline to disk (with primary key OrderLineID) Customer ID value Screen display Order details

More about that multivalue WebXel control property: n Called “field mappings” n You’ve used these a couple of times now:  AddFromDB… populating CartFields from the Products table  WriteToDB… populating CartFields from the customer details form n Either tagged as “Parameters” or “Fields”

Using “Field Mappings” with Visual Studio n This feature was intended to take the hard work out of parameter passing…  unfortunately not compatible with Visual Studio “design mode”…  so errors generated!  and “properties” can’t be used the insert values (as they could with “Cart”)  fields could be added as “cartfields” or “databasefields”  need to refer to the WebXel control “help” for exact syntax of controls with “field mappings”

Explaining Parameter Passing for a new customer n Customer puts their data into textbox control n Customer presses “submit” button to allow the WriteToDB control to run n Data captured and sent to cart and Database with appropriate fieldnames  CustomerID field essential for both Cart and Customers datatable

Converting between DataTypes n Sometimes necessary when passing parameters to change the datatype  known in “C” programming as “casting” n Easy to achieve a cast…  e.g. number to a string would just add.tostring() after the expression  can be used to change data to currency format Variable (integer) Variable (string) Expression plus.tostring()

Saving The Order itself n Handled by the WebXelCart:SaveOrder control  works in a similar way to WritetoDB  but writes appropriate cart fields to the ORDERS table n Important differences between WritetoDB and SaveOrder in this coding:  both write cart fields to a database table

Payment n Next section presented after invoice has been acknowledged…  would normally transfer through secure connection to a merchant services provider page  once payment has been authorised and taken… »customer returns to “come again soon” page then exits the website »session cookie (i.e. cart) erased

The Write Up for assignment 2 (40% of marks; 1150 words)

How to Document… n n Projects usually have four phases:   Analysis   Design   Implementation   Evaluation n n Your assignment 2 can be considered to be a mini-project…

Analysis n Normally the most important part…  in this case, the analysis has been done for you… n You already know that  you need to produce a shopping cart system from the assignment brief  a payment system doesn’t need to be produced, but there should be a “dummy” payments page

Design n This should cover:  web page design  database design  something about the scripts required to interact effectively between: »remote database »local memory storing the cart fields »screen  A test plan…

Implementation n Coding n Testing n We’ll talk about this next week… That’s all… for this week