ONLINE SHOPPING CART WEBSITE
Professional Front-End Web Development Assignment
HTML5 CSS3 JavaScript 7 DAYS DEADLINEYOUR FREELANCE CLIENT DASHBOARD
Welcome, Freelance Web Developer! You have received a new client project. Read the requirements, understand the tasks, plan your work and deliver a professional online shopping website.
01. CLIENT PROJECT BRIEF
Client: Online Shopping Business
Project: Responsive E-Commerce Website
Developer: You – Freelance Web Developer
About the Client
We are looking for a web developer to create an attractive and user-friendly online shopping website. Customers should be able to view products, search, add items to their cart and proceed to checkout.
Client Requirements
Task 1.1 – Understand the Business
- What products will the website sell?
- Who are the target customers?
- What colours should represent the business?
- What information should appear on the homepage?
- What should customers be able to do?
Task 1.2 – Identify Website Requirements
- Homepage
- Shop / Products page
- Shopping cart page
- Checkout page
- Search and category filtering
- Responsive mobile layout
Task 1.3 – Prepare Your Project Proposal
Before coding, submit a proposal explaining:
- Your understanding of the project.
- Your technical approach.
- Your proposed design.
- Your estimated completion time.
- Your estimated freelance price.
02. UI/UX DESIGN & WEBSITE PLANNING
Before developing the website, prepare a basic wireframe and understand how the pages connect.
Task 2.1 – Website Page Structure
Website page architecture diagram
Task 2.2 – Homepage Design
- Business logo
- Navigation menu
- Hero banner
- Featured products
- Promotional offers
- Footer and contact details
Task 2.3 – Product Page Design
- Product image
- Product name
- Product description
- Product price
- Category
- Add to Cart button
Requirement: Display at least 12 products.
Task 2.4 – Cart and Checkout Design
- Shopping cart item list
- Quantity controls
- Subtotal and total
- Customer details form
- Order confirmation message
Task 2.5 – User Shopping Journey
03. WEBSITE DEVELOPMENT
Develop the website using your own HTML, CSS and JavaScript skills.
Task 3.1 – HTML5 Development
- Create index.html
- Create shop.html
- Create cart.html
- Create checkout.html
- Use semantic HTML elements.
- Connect the pages using navigation links.
Task 3.2 – CSS3 Development
- Design navigation and header.
- Create responsive product cards.
- Style buttons and forms.
- Use CSS Grid and Flexbox.
- Implement mobile responsive layouts.
- Maintain consistent typography and colours.
Task 3.3 – JavaScript Development
- Create a product data array.
- Display products dynamically.
- Implement product search.
- Implement category filtering.
- Implement shopping cart functionality.
- Calculate prices dynamically.
- Save cart data using Local Storage.
Task 3.4 – Project Folder Structure
Task 3.5 – Website Technology Architecture
04. SHOPPING CART FUNCTIONALITY
This is the most important part of your assignment. The shopping cart must work correctly, not just look attractive.
Task 4.1 – Product Management
- Create at least 12 sample products.
- Each product must have an ID.
- Each product must have a name and price.
- Each product must have an image.
- Assign product categories.
Task 4.2 – Add to Cart
When a customer clicks Add to Cart:
- Add the selected product.
- Update the cart item count.
- Prevent duplicate cart entries by increasing quantity.
- Display a confirmation message.
Task 4.3 – Update and Remove Items
- Increase quantity.
- Decrease quantity.
- Remove selected products.
- Update the total automatically.
Task 4.4 – Price Calculation
Use the following formula:
Example:
| Product | Price | Qty | Total |
|---|---|---|---|
| T-Shirt | 2,000 | 2 | 4,000 |
| Shoes | 5,000 | 1 | 5,000 |
| Grand Total | 9,000 | ||
Task 4.5 – Local Storage
The shopping cart should remain available when the customer refreshes the browser.
- Save cart data in Local Storage.
- Load saved cart data when the page opens.
- Update saved data after every cart change.
- Handle an empty cart correctly.
Task 4.6 – Checkout Form
- Validate customer name.
- Validate email address.
- Validate contact number.
- Validate delivery address.
- Prevent empty orders.
- Show a successful demo order message.
05. WEBSITE TESTING & QUALITY ASSURANCE
A professional freelancer must test the website before delivering it to the client.
Task 5.1 – Functional Testing
- Homepage loads correctly.
- Navigation links work.
- All 12 products display.
- Product search works.
- Category filter works.
- Add to Cart works.
- Quantity adjustment works.
- Remove product works.
- Total calculation is correct.
- Local Storage works.
- Checkout validation works.
Task 5.2 – Responsive Testing
| Device | Expected Result |
|---|---|
| Desktop | Full website layout |
| Tablet | Adjusted product grid |
| Mobile | Single-column friendly layout |
Task 5.3 – Bug Fixing
- Check browser console for JavaScript errors.
- Fix broken images and links.
- Check incorrect calculations.
- Fix layout and alignment problems.
- Check empty cart and invalid form scenarios.
06. FINAL DELIVERY & FREELANCER EVALUATION
Task 6.1 – Seven-Day Project Timeline
| Day | Development Activity |
|---|---|
| 01 | Client requirements and planning |
| 02 | Homepage HTML and CSS |
| 03 | Product listing page |
| 04 | Shopping cart JavaScript |
| 05 | Checkout and validation |
| 06 | Responsive design and testing |
| 07 | Bug fixing and delivery |
Task 6.2 – Final Client Deliverables
- Complete source code.
- HTML, CSS and JavaScript files.
- Product images and assets.
- Four working website pages.
- Screenshots of the website.
- Working website demo link.
- Explanation of JavaScript functions.
Task 6.3 – Fiverr-Style Freelancer Proposal
Before starting the project, submit your answers to the following client questions.
Freelancer Application Questions
- What do you understand about this project?
- How will you develop the website?
- What design and colour scheme do you recommend?
- How will you implement the shopping cart?
- How will you save cart data?
- How long will you need to complete the project?
- What challenges do you expect?
- How much would you charge a real client?
- Can you provide a portfolio or previous work?
Task 6.4 – Project Evaluation
| Evaluation Category | Marks |
|---|---|
| HTML Structure | 10 |
| CSS Design | 15 |
| Responsive Design | 10 |
| JavaScript Functionality | 25 |
| Shopping Cart Logic | 20 |
| Form Validation | 10 |
| Code Organisation and Testing | 10 |
| TOTAL | 100 |
You must demonstrate that you understand your code and can explain how the website works.
FINAL CLIENT MESSAGE
Congratulations! You have completed your first freelance-style web development assignment. Your next challenge is to develop a professional admin dashboard to manage products, stock, customers and orders.
Need help with HTML, CSS, JavaScript or your project development?
WHATSAPP: 0729622034
No comments:
Post a Comment