Skip to content
/ Web2 Public

Simple PHP/MySQL e‑commerce website with admin panel for product, category and order management.

License

Notifications You must be signed in to change notification settings

CallmeSen/Web2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-Commerce Website

A full-featured e-commerce web application built with PHP and MySQL, featuring a complete shopping cart system, user management, admin panel, and order processing capabilities.

Features

Customer Features

  • 🛍️ Product Browsing - Browse products by category with advanced filtering
  • 🔍 Search Functionality - Search for products across the entire catalog
  • 🛒 Shopping Cart - Add, update, and remove items from cart
  • 💳 Checkout System - Complete checkout process with order placement
  • 🎟️ Coupon System - Apply discount coupons at checkout
  • 👤 User Authentication - Register, login, and manage user profiles
  • 📦 Order Tracking - View order history and order details
  • 🔑 Password Recovery - Secure password reset functionality
  • 📝 User Reviews - Product feedback and rating system
  • 📱 Responsive Design - Mobile-friendly interface

Admin Features

  • 📊 Dashboard - Comprehensive overview with sales analytics
  • 📦 Product Management - Add, edit, and delete products
  • 🏷️ Category Management - Organize products into categories
  • 👥 User Management - Manage customer accounts
  • 🛍️ Order Management - Process and track customer orders
  • 🎟️ Coupon Management - Create and manage discount coupons
  • 🔗 Links Management - Manage website links and navigation
  • 🎨 Logo & Slider Management - Customize website branding
  • 💬 Customer Feedback - Review and respond to customer feedback
  • 📈 Reports - Generate sales and performance reports
  • 👨‍💼 Admin User Management - Manage admin accounts and permissions

Technologies Used

  • Backend: PHP
  • Database: MySQL
  • Frontend: HTML, CSS, JavaScript
  • UI Framework: Bootstrap (based on assets structure)
  • Icons: Font Awesome / Custom icons

Project Structure

Web2/
├── admin/                      # Admin panel
│   ├── class/                  # Backend classes
│   ├── includes/               # Admin includes (header, nav, etc.)
│   ├── views/                  # Admin view templates
│   ├── json/                   # JSON API endpoints
│   ├── assets/                 # Admin assets (CSS, JS, images)
│   └── uploads/                # Uploaded files
├── assets/                     # Frontend assets
│   ├── css/                    # Stylesheets
│   ├── js/                     # JavaScript files
│   ├── images/                 # Images
│   └── fonts/                  # Web fonts
├── includes/                   # Frontend includes
│   ├── header_*.php            # Header components
│   ├── footer.php              # Footer component
│   └── *.php                   # Other reusable components
├── json/                       # Frontend JSON endpoints
├── ecommerce.sql              # Database schema
└── *.php                      # Main application pages

Installation

Prerequisites

  • Web Server: Apache or Nginx
  • PHP: Version 7.0 or higher
  • MySQL: Version 5.6 or higher
  • XAMPP/WAMP/LAMP (recommended for local development)

Setup Instructions

  1. Clone the repository

    git clone https://github.com/CallmeSen/Web2.git
    cd Web2
  2. Set up the database

    • Create a new MySQL database
    • Import the database schema:
      mysql -u your_username -p your_database_name < ecommerce.sql
    • Or use phpMyAdmin to import ecommerce.sql
  3. Configure database connection

    • Open admin/class/adminback.php
    • Update the database credentials:
      private $dbhost = "localhost";
      private $dbuser = "your_username";
      private $dbpass = "your_password";
      private $dbname = "your_database_name";
  4. Set up file permissions

    chmod 755 admin/uploads/
  5. Configure your web server

    • Point your document root to the project folder
    • Ensure mod_rewrite is enabled (for Apache)
  6. Access the application

    • Frontend: http://localhost/Web2/
    • Admin Panel: http://localhost/Web2/admin/

Default Admin Credentials

After importing the database, you can login to the admin panel with:

  • Username: (Check database or create via direct SQL insert)
  • Password: (Check database or create via direct SQL insert)

⚠️ Security Notice: Change default credentials immediately after first login!

Usage

Customer Side

  1. Browse Products: Navigate through categories or use the search function
  2. Add to Cart: Click "Add to Cart" on any product page
  3. Checkout: Review cart and proceed to checkout
  4. Apply Coupon: Enter coupon code at checkout for discounts
  5. Track Orders: Login to view order history and status

Admin Side

  1. Login: Access /admin/ and login with admin credentials
  2. Dashboard: View sales statistics and recent orders
  3. Manage Products: Add new products or edit existing ones
  4. Process Orders: View and update order statuses
  5. Generate Reports: Create sales reports for specific periods

Key Files

  • index.php - Homepage
  • single_product.php - Product detail page
  • shopping_cart.php - Shopping cart
  • checkout.php - Checkout process
  • user_login.php - User authentication
  • admin/dashboard.php - Admin dashboard
  • admin/class/adminback.php - Core backend class

Database

The database schema is provided in ecommerce.sql. It includes tables for:

  • Users and authentication
  • Products and categories
  • Orders and order items
  • Coupons and discounts
  • Admin users
  • Customer feedback

Security Features

  • Session-based authentication
  • Password recovery system
  • SQL injection prevention (using prepared statements recommended)
  • Admin panel access control

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Support

For support, please open an issue in the GitHub repository or contact the development team.

Roadmap

  • Payment gateway integration
  • Email notifications
  • Advanced product filtering
  • Wishlist functionality
  • Product comparison
  • Multi-language support
  • RESTful API
  • Enhanced security features

About

Simple PHP/MySQL e‑commerce website with admin panel for product, category and order management.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published