Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are required to develop a simple specialized e-store (e.g. books - coffee - perfumes - organic food - etc.) You will have to create
You are required to develop a simple specialized e-store (e.g. books - coffee - perfumes - organic food - etc.) You will have to create 2 different interfaces for the e-store: admin interface to control products and customer interface to browse and buy products. Project Details: Admin interface should have four web pages: 1. admin.php: contain admin login form. Admin can use predefined username and password details but will have to change the password after the first login: a. username: admin b. password: admin 123 2. dashboard.php: after successful login, this page will have links to two web pages (addProduct.php and viewOrders.php) 3. addProduct.php: allows the admin to add products. The admin should enter the name - photo - price - description - quantity and this information should be stored in the database. 4. viewOrders.php: allows the admin to view customers' orders in a table. The table should have 4 columns (order date - customer email - order number Total price) and should be sorted in descending order. Customer interface: 1. index.php: will contain the website name and a login form for customers 2. register.php: will contain registration form 3. home.php: will contain the available products 4. product.php: when the user clicks on a certain product, all product information will appear in this page and a button to add the product to the shopping cart 5. cart.php: will contain the products added to the shopping cart. A customer is required to register to become a member and start shopping. Your registration form should ask the user to fill in the following information: 1. Name 2. Email 3. Password 4. Confirm password You should validate the form appropriately using JavaScript AND PHP to meet the following conditions: a) All fields should not be empty b) Password and Confirm password fields should be the same c) After a user register with an email address, the website will not accept any future registration using the same email. Once the member is logged in successfully, home.php will display a welcome message with the customer's name and the list of available products. The member can click any product to view more information and add the product to the shopping cart. If the quantity of the product is less than 5 , a note should be displayed in the product's information page next to the price indicating the remaining number in stock. If the product is sold out (quantity =0 ) the product should not be displayed at all (in home.php) Members can go to shopping cart page (cart.php) and confirm the order. The customer does not have to add any additional information (shipping / billing information is not needed) and you do not have to add payment processing in this project, just assume that the website offers COD (Cash on Delivery) option only. The quantity for the products in the order should be updated in the database accordingly. You should have only one page template for products (product.php?id=123) and retrieve contents from the database using query strings. Keep in mind the following: 1. "index.html" is the homepage and will contain customer's login form and link to registration page (register.php) 2. Users will login using their registered email address and password. 3. Users can logout of the system at anytime. 4. You do not need to add 'forgot password' or 'remember me' functionality in your website. 5. Use one file (config.php) for connection details and use it throughout the website. 6. Use PHP sessions to maintain state. 7. Never use JavaScript's alert box in your project
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started