Skip to content

Contact page - Customer browsing - Purchasing - Administration - Form validation - Retrieve data from SQL

Notifications You must be signed in to change notification settings

KosarTalei/Online-sports-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project overview

Sports Warehouse is a retail company that would like to start selling sports equipment online. The project will be delivered in four stages.

Design requirements

A Photoshop file which contains the desktop design and mobile design for the website.

Web hosting

The company already has web hosting, which is a Linux server running Apache (v2.4+), PHP (v7.3+) and a MySQL database (v5.7+).

Deliverables

The project will be delivered in 4 separate stages. Each deliverable will contain some practical creation of an aspect of the project along with documentation.

Deliverable A – Pre-launch (coming soon) web page

Dynamic Web project build stream

Create a one-page website showing the company logo and a message indicating they will be selling sports equipment online soon. The page must contain a contact form that can be filled out by the visitors of the website to ask questions.

Implementation of contact page:

Create the contact page. This page will display the company logo and the following text: “Sports warehouse is coming soon. If you have any questions, we would love to hear from you, please complete the following information. “ The form you create gathers the following data from the user:

  • First name - required
  • Last name - required
  • Contact number
  • Email address – required
  • Question

When the form is submitted the required data needs to be validated using PHP.

Deliverable B – Static website layout

UX Web layout stream

Use the provided Photoshop design to create the website home page using HTML and CSS. It will be given to the design manager for approval before it is converted to a PHP website.

Deliverable C – Customer browsing

Dynamic Web project build stream

For this deliverable the application enables customers to view featured items on the home page, browse, search for items and contact sports warehouse using the contact page. A database needs to be created with the correct tables, columns and relationships. The products and categories are stored in the database.

Click here to visit the website

Section A - Home page requirements

The home page for the website displays the store’s featured items. These are items that have been marked as featured in the database. Use SQL to retrieve the data. For each item display the item photo, price, sale price (if applicable) and product name.

Categories

The items for sale are organised into categories. An item belongs to just one category and categories can have many items. The categories displayed in the website are stored in the database. Use SQL to retrieve the data. These categories are displayed towards the top of the page and in the footer.

Section B - Contact us page

The contact page was created in deliverable A – pre-launch. This deliverable involves editing the page layout so it fits with the rest of the site. The contact page can be accessed by clicking on the “Contact Us” link in the top navigation, and at the bottom of the page.

Section C - Browsing by category

The user can browse the site to view the items for sale. The items can be browsed by selecting the category. When a category is selected all the items that belong to the category are displayed. For each item, display:

  • Item name
  • Price and sale price if applicable
  • Photo of item

Section D - Searching for an item

The user can search for an item by providing the item name or part of the name. Use SQL to retrieve the data. For each item, display:

  • Item name
  • Price and sale price if applicable
  • Photo of item

Section E - Viewing an item

When an item is displayed the user can click on the item to view the items:

  • Item name
  • Price and sale price if applicable
  • Photo of item – display a larger photo for the item
  • Description of the item

Use SQL to retrieve the data.

Section F - Coding and database requirements for deliverable C

  • A MySQL database is setup, and the PHP code connects to it with the correct credentials.
  • Data for the database is imported into the tables
  • Test the database connection works on both the local web server (XAMPP) and the remote web server (Web host)
  • Create a class which will handle the database connection and retrieval of data.
  • Create a layout template which contains the common elements of the web pages.
  • Identify and create templates to separate the user interface from the programming logic.

Section H - Wireframes

Create a wireframe /storyboard to demonstrate the customer purchasing functionality.

Deliverable D – Customer purchasing and administration

Dynamic Web project stream

Add functionality to the website to allow customers to purchase products and to allow staff to maintain products.

Click here to visit the website

Section A - Purchase items

Items can be added to a shopping cart for purchase. The customer may purchase as many items as they like.

Section B - Checkout

When the customer is checking out, they will need to fill out some personal and payment details. The form data validated using a client-side programming language(JavaScript). Once payment is completed the customer will receive an order number to keep for future reference. We will not be using a payment gateway. The credit card details will instead be stored in the database.

Section C - Authentication

  • Staff members can login using their username and password.
  • Staff members can update their own password.

After a user logs in, a session variable stores the user's credentials so they don't need to sign in every time to access all the protected pages. Shopping cart items are saved in a session variable, updates, deletes are made to it, and the session data is saved for the checkout.

Section D - Maintain data

  • Staff members can add, delete and modify categories.
  • Staff members can add, delete and modify items.

Testing

Documents

Documentations for each stage will be attached to document folder.

About

Contact page - Customer browsing - Purchasing - Administration - Form validation - Retrieve data from SQL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published