Question: Create code files for an e - commerce website that sells physical copies of old and new video games and allows users to download games
Create code files for an ecommerce website that sells physical copies of old and new video games and allows users to download games to their PC Also create a admin page for the website that will change status of the users order from pending to shipped and allows the useradmin to add to the inventory in the database. Use HTML CSS and PHP to construct the website using the descriptions below.Create code for all the php files below read thoroughly:AddInventory.php: This php will connect to the quantityonhand.php this will allow useradmin to increase the number of the current inventory of the Products in the databaseAdmin.php: This php will display the order information from the order table. We will then click UpdateOrderStatus which will process the code from UpdateOrderStatus.php changing the user order from pending to shipped in the database. On this php we will also have a navbar have a section that says inventory when clicked it takes useradmin to ViewInventory.php pageAdminLogin.html will be taking the email and password that is recorded in the UserAdmin table and once entered they will be taken to the admin.phpLogin.php will be connected to the UserAdmin table which will link the email and password in adminlogin.html it will take the email and password from the the tableCart.php will contain the item selected from the Product.php here it will display the selected product have a remove function that will utilize code from the Clearcart.php to remove item from cart, allow the user to increases the quantity of the item, displays the price of items in the cart. Then on the right hand side of the cart.php it will show the the subtotal of the items in the cart add the shipping and handling cost to subtotal and output the total cost. After this the user will click checkout and be taken to the Checkout.phpCheckout.php will ask the user for their Name, EmailAddress, ShippingAddress, CreditCardNumber, and CreditCardExperationDate. At the bottom of this text input it will display the subtotal cost, shipping and handling charge, and total cost of order. Once filling in the information there will be a button to click on called place order. Once place order is clicked the user's Name, EmailAddress, ShippingAddress, CreditCardNumber, and CreditCardExperationDate will be saved in the user table, their order in will be placed in the order table and the details of that order in the orderdetail table. If all information is placed in all tables then the user upon clicking place order will be taken to the ThankYou.phpClearcart.php will link to the remove function in cart.php allowing users to remove items from the cart.phpIndex.htmlhomepage will be the main home page for the website, I will contain the banner image, a navigation bar containing links to the other php files, these being home, products, about us contact, administrator, download, cart, and login In the navbar there will be a section named administrator, when clicked it will take us to the AdminLogin.htmlProduct.php will display the information from the Games table along with the quantity for each of those items recorded in the QuantityonHand tables. The user can select the number they would like to have for each item, and a button to add the item selected to cart.phpStyle.css will diplomacy the layout design of the websiteThankYou.php will be displayed after the user clicks place order. Here it will display the message "Thank You For Your Order"UpDateOrderStatus.php will update the information in order from pending to shipped in the orders tableViewInventory.php here will display the information from the inventory table allowing the useradmin to see what items are instock from the inventory database.Use the GameStop.com as reference for design lookuser the following database SQL to program the website:Create the DatabaseCREATE DATABASE OldNewGenGamingCenter;Use the DatabaseUSE OldNewGenGamingCenter;Create Table for usersCREATE TABLE Users UserID INT AUTOINCREMENT PRIMARY KEY, Name VARCHAR NOT NULL UNIQUE,EmailAddress VARCHARShippingAddress VARCHAR CreditCardNumber VARCHARCreditCardExpirationDate DATE;Create Table for useradminCREATE TABLE UserAdmin UserAdminID INT AUTOINCREMENT PRIMARY KEY,Name VARCHAR NOT NULL UNIQUE,Address VARCHARPhoneNumber VARCHAREmailAddress VARCHAR Password VARCHAR ;CREATE TABLE Games VideoGameID INT PRIMARY KEY,VideoGameName VARCHARPictureLink VARCHAR;Genre VARCHAR EsrbRating VARCHARGameAge VARCHARPrice DECIMAL;CREATE TABLE QuantityonHand VideoGameID INT,Quantity INT, PRIMARY KEY VideoGameIDFOREIGN KEY VideoGameID REFERENCES GamesVideoGameID;CREATE TABLE Orders OrderID INT AUTOINCREMENT PRIMARY KEY,CustomerID INT,TotalWeight DECIMAL TotalPrice DECIMAL ShippingCharge DECIMAL Date DATE,Status VARCHAR FOREIGN KEY CustomerID REFERENCES Users UserID;CREATE TABLE OrderDetails OrderID INT, VideoGameID INT, Quantity INT,Price DECIMAL PRIMARY KEY OrderID VideoGameIDFOREIGN KEY OrderID REFERENCES OrdersOrderIDFOREIGN KEY VideoGameID REFERENCES GamesVideoGameID;CREATE TABLE Inventory VideoGameID INT PRIMARY KEY, Name VARCHAR Description VARCHAR QuantityOnHand INT, FOREIGN KEY VideoGameID REFERENCES Games VideoGameID;CREATE TABLE ShippingHandlingCharges WeightBracket INT PRIMARY KEY, Charge DECIMAL ;INSERT INTO gamesVideoGameIDVideoGameNamePictureLinkGenreEsrbRatingGameAgePrice VALUES 'Devil May Cry 'DevilMayCryjpg 'hack & slash and actionadventure', M Rating', y 'fate samurai remnant', 'FateSamuraiRemnant.jpeg', 'action RPG 'Teen Rating', y 'wii sports resort', 'WiiSportsResort.jpg 'sports simulation', Ey 'Ghost of Tsushima Director's Cut', 'Ghost.jpg 'Actionadventure, Stealth', My 'ben omniverse ds 'benjpg 'Beat em up Runner', Ey;INSERT INTO inventoryVideoGameIDNameDescriptionPartNumberQuantityOnHand VALUES 'Devil May Cry 'hack & slash and actionadventure', 'fate samurai remnant', 'action RPG 'wii sports resort', 'sports simulation', 'Ghost of Tsushima Director's Cut', In the late th century, the Mongol empire has laid waste to entire nations along their campaign to conquer the east. 'ben omniverse dsBeat em up Runner', ;INSERT INTO useradminUserAdminIDNameAddressPhoneNumberEmailAddressPassword VALUES 'Shadow', W th place', 'shadow@mygmail.com', dlhS@INSERT INTO quantityonhandVideoGameIDQuantity VALUES ;INSERT INTO shippinghandlingchargesWeightBracketCharge VALUES;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
