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

Slides:



Advertisements
Similar presentations
MFA for Business Banking – Security Code Multifactor Authentication: Quick Tip Sheets Note to Financial Institutions: We are providing these QT sheets.
Advertisements

User’s Guide.
CaterTrax Tutorial
UOW Purchasing Card Application Coding & Approval Presentation.
Fox Scientific, Inc. ONLINE ORDERING 101. Welcome to our website On our main page you can find current promotions, the vendors we offer, technical references.
MEPO Training MEPO Database Access Training Presentation Copyright 2011 Rodger B. Fluke, MPA.
SIS – NBS Online Specimen Tracking System Training
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 3-1 of…
Information for students Welcome to the S 3 P system. Login to the system by entering your User ID and password. The User ID is the same as your normal.
DePaul Bears Try Your Luck!. Why buy this product? Approximately 1,000,000 cell phone users Approximately 2,000,000 or more people play the lottery New.
Creating Web Page Forms
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
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.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
March 2008 Electronic Billing (EB) Developed by the Department of Developmental Services Developed by the Department of Developmental Services.
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.
Forms and Form Controls Chapter What is a Form?
If you are very familiar with SOAR, try these quick links: Principal’s SOAR checklist here here Term 1 tasks – new features in 2010 here here Term 1 tasks.
WNS1.com Online Training How to use the Western Nevada Supply online store and tools.
Copyright CovalentWorks Training Guide for Invoices MYB2B Powered by CovalentWorks.
Creating Your PE Webshop Using SmartStore.biz This Tutorial assumes you have downloaded the software from This tutorial is based.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Your on-line connection to Ferraz Shawmut; Getting Started Login / out Contact Us Home Page, Account Inquiry My E-Account Account Status Ordering Options.
COMP3241 E-Commerce Technologies Richard Henson University of Worcester October 2012.
Tutorial 10 Adding Spry Elements and Database Functionality Dreamweaver CS3 Tutorial 101.
COMP3121 E-Commerce Technologies Richard Henson University of Worcester November 2012.
Screen Previews for Shopping Carts and Checkout Process 10.3 release October 05, 2010.
Jonathan Westlake, ed: Nic Shulver JSP, Structure and JavaBeans JSP models Assignment context “Register as a member of the site/show member details/update.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 4-1 of…
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Setting Up an on-line Store Tutorial Using SmartStore.biz This Tutorial assumes you have downloaded the software from This Tutorial.
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.
Create a New Layaway in the LayThisAway System A step-by-step guide to creating a new Layaway in the LayThisAway System.
1. To start the process, Warehouse Stationery (WSL) will invite you to use The Warehouse Group Supplier Electronic Portal and will send you the link to.
Near East University Department of Computer Engineering E-COMMERCE FOR LAPTOPS SELLING COMPANY Abdul Halim Abu Kuwaik
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
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.
Database Handling, Sessions, and AJAX. Post Back ASP.NET Functionality The IsPostBack method in ASP.NET is similar to the BlackBerry.refresh method –IsPostBack.
Chapter 4: Working with ASP.NET Server Controls OUTLINE  What ASP.NET Server Controls are  How the ASP.NET run time processes the server controls on.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Reference: “ASP.NET 2.0 Illustrated” by Alex Homer and Dave Sussman. -ch3 illustrated book
How to Enter a Requisition for Goods and Services in Owl Link Updated March 15, 2013.
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.
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Website Forms / Data Acquisition.
 Shopping Basket  Stages to maintain shopping basket in framework  Viewing Shopping Basket.
COMP3241 E-Commerce Technologies Richard Henson University of Worcester November 2014.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
COMP3241 E-Commerce Technologies Richard Henson University of Worcester December 2014.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 6: Creating XHTML Forms Kelly.
Interactions & Automations
Navigation: If the tutorial opens up in your web browser, simply click your mouse to advance to the next slide. Use the “Backspace”
Learning Aim C.  In this section we will look at how text, tables, forms and frames can be used in web pages.
Fox Scientific, Inc. ONLINE ORDERING 101. Welcome to our website On our main page you can find current promotions, the vendors we offer, technical references.
This presentation demonstrates online order process on Biznet Tradelink.
COMP3121 E-Commerce Technologies Richard Henson University of Worcester December 2009.
Compatible with the latest browsers; Chrome, Safari, Firefox, Opera and Internet Explorer 9 and above.
Submitting an invoice with the Tungsten Portal
COMP3241 E-Commerce Technologies
Cookies BIS1523 – Lecture 23.
Unit 27 - Web Server Scripting
Web Development Using ASP .NET
Quick Guide for Online Ordering
Presentation transcript:

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

Week 7: Mechanism of a Shopping Cart & Customer Login n Objectives:  Explain how the shopping cart dataset interfaces with the products table  Explain how a shopping cart can update automatically in response to a user change of mind  Use the shopping cart system to gather customer data, that would enable goods to be delivered to a real address

The Generalised Shopping Cart n Basic features:  five defined data fields are the bare minimum (cart record ID, cart ID, product ID, product description, product price)  as you’ve seen, description & price fields interact with a remote product table via product ID  further constants and variable fields added to the local dataset to store results of calculations

The Common Features of Shopping Cart Systems n Code for the cart can be written in many different languages  can run on different web server platforms  all must create the local dataset, store the constants, do the calculations, allow interaction with remote database

Trapping Data for the Shopping Cart n Server scripts needed to manage the dataset…  link cart fields with “product ID”, “price” and “description” fields in the database  set the “quantity” field to have a default value of 1  give each cart record a unique identifier

Additional Shopping Cart Fields n The point of a shopping cart is to advise the customer about:  what they’ve bought (clicked on)  the total amount they will have to pay… n This requires calculations, and further data fields to hold the results  Quantity * Price = Line Total  Sum of line totals = Order Total (minus Tax)  Order Total + Tax = What customer pays for goods  Total including Tax + Shipping = Total amount due

How Carts create and store the line totals & order total n If only one product is selected…  the line total cost is calculated (cost * quantity)  order total becomes equal to line total  a record including this value is written to the dataset  and stored as a record within the session cookie n If more than one product is selected, the line totals need to be added together  order total becomes the result of the addition

How a click on the product can update the cart n Essential that the cart dataset is available with each product page  otherwise, product and quantity data can’t be added to the cart! n Advice: use “split screen” to see the code as well as the screen design  then able to check the code that corresponds with the cart, and its appropriateness for page display  if there is a mismatch, you can’t expect the shopping cart to be updated…

Web Controls and ASP.net Shopping Carts n Web controls…object classes used by asp.net to render parts of a page  similar to HTML “forms”  extra advantage of being reusable n An.aspx web page may use a hierarchical structure of defined web controls  making a combination of code behind and assembly-based controls easily manageable

Some Typical Web Controls that used with a HTML form n button listbox n checkbox radiobutton n checkboxlist radiobuttonlist n dropdownlist textbox n imagebutton label

Web Control syntax (1) n Textbox & contents must be held within a HTML form  i.e. between and  i.e. between and n Opening tag: n Opening tag:  various properties of the control follow… »e.g. display of text box »displayed text contents »runat=“server” n Closing tag: /> or n Closing tag: /> or

Dropdown box control & “nesting” syntax n Drop Down List box & contents  again within a HTML form n Opening tag: … 1.properties of the control individually defined e.g. properties of drop down list box, and displayed text contents runat=“server” (essential) Controlname ID = “unique name” (also essential) 2.further nested control needed for each item in the drop down list…

Dropdown box control & “nesting” syntax (cont…) 3. Each item defined as: …. properties of listitem…. …. properties of listitem…. properties should include: text = “” (what is displayed) value = “” (what is passed on) 4. Closing tag: or />

Dropdown box control & “nesting” syntax (3) n Typical code for whole structure:  Note the embedding of one control, listitem within another, dropdownbox <form> text = “true” value = “1”/> text = “true” value = “1”/> text = “false” value = “0”/> text = “false” value = “0”/>/></form>

Summary of cart logic n Up to three different labels for product ID:  product table value  parameter value  cart value n This can be very confusing, but the cart won’t work without the right associations  all cart control parameters must be correctly entered… otherwise… »no data or the wrong data will be added »incorrect parameters will be invoked causing.net errors

WebXelCart Assembly n Collection of compiled versions of many coded web controls:  Cart  AddFromDB  WriteToDB  etc.. n Visual Studio can “open” an assembly to reveal defined properties of each control

WebXelCart:Cart control n Like any other asp.net web control…  stored as executable code n Visual Studio makes it available to any.net pages in the project…  assuming parent assembly is… »held in the relevant /App_Data folder »and added to “References” n Can be called as … n Can be called as …  like any other web control  parameters have to be set accordingly

Passing the Product ID Parameter Product Page Add from DB scripts Product ID value sent as e.g. “ProdID” fields extracted from remote database Shopping Cart Remote DB

Updating Cart Values n When the customer clicks on a hyperlink/button associated with a product:  a “line record” is created on the cart for that product (based on the parameter passed)  quantity is set at the default value of 1 n Cart Totals are then automatically calculated n If customer clicks on a second product…  further cart record is created  all cart totals recalculated

Cart Display Page n Cart.aspx consists of a HTML table with scripts added to insert cart values in the right places on the table n Pages should be designed so cart.aspx is available at all times, so the customer can readily remind themselves what they have clicked on… n Cart.aspx should also include:  update product quantity (e.g. buy 2 instead of 1)  remove a cart line altogether (erase cart record)

Login & Checkout Pages n A user should NOT have to log on in order to activate the shopping cart n However, the user becomes a customer once there is a commitment to purchase  at that point, the login page must be offered n First stage of checkout:  recall the customer’s details (if they exist)  gather new customer details

Designing the Customer Page n This is challenging, because the page has to do two different things on the same HTML form…  gather new customer details  display existing customer details n Also the matter of username/password  so that existing customers have as much as possible done for them…

Adding Customer Details n Fields required:  name/address/postcode to send the goods to  address to provide fulfilment information to the customer  Username (use address) & password  telephone number as backup to address n Validation of field contents:  essential to prevent garbage data being sent to the database and causing run-time errors

WebXel:WritetoDB control n Has to do two different things, depending on whether customer exists or not… n Checks for existing customer based on address  if not, blank form has to be completed and sent to customer table  If so, customer details brought from customer table and displayed

WebXel:Login control n Login page called during customer login for existing customers n Uses WebXelCart:Login  checks /password supplied against values in the customer table »IF a match… causes customer/getcust.aspx page to be called and customer record to be displayed »ELSE… brings up a blank customer/getcust.aspx page with error message, and allows details to be added

Logon Page n Called from the customers/getcust page n Uses WebXelCart:Login control  allows the customer to use their chosen username/password to proceed to a more secure/purchasing area of the website n If the login fails…  the customer should be informed on screen n If successful…  the customer should have their details displayed  and be provided with an option to update

Order Display/Online Invoice n Once the customer details have been agreed…  the system presents an “order summary” page  to make this page valid as an online invoice it should also display »the order number »the address where the order is to be shipped »the amount the customer will pay including all additional charges

Store Order control n The cart is only a temporary local store so cannot be used for fulfilment  So after the invoice has been displayed, the order needs to be stored somewhere remotely in the database n Once the invoice is accepted, by the customer clicking on “payment”, the order details must be written to the database  this is achieved through the WebXel:SaveOrder control

Payment & Send Order n Once the payment system has approved payment, the vendor can then read the order and set about fulfilling it n This is beyond the scope of assignment 2…  the payment page should therefore a “dummy” page »it should still provide good navigation to other pages »it COULD still trigger an (e.g. copy of invoice) to the customer »WebXelCart:Sendmail if you are feeling adventurous!

Payment System n In a real e-commerce system… control would normally be transferred to a merchant services provider to deal with interaction with the International Banking Network  the system would again have to provide direct on screen interaction with the customer  the system should also trigger a first message to the customer »the customer has given it their bank details and will be seeking reassurance that: n their details have been processed n goods will soon be on their way

“Thank You” Page and ing the customer n COULD be overlooked, but not a good idea…  the customer will be glad of further reassurance and any indication that the vendor is worthy of their business  the customer will also appreciate further messages by