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.
- 🛍️ 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
- 📊 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
- Backend: PHP
- Database: MySQL
- Frontend: HTML, CSS, JavaScript
- UI Framework: Bootstrap (based on assets structure)
- Icons: Font Awesome / Custom icons
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
- Web Server: Apache or Nginx
- PHP: Version 7.0 or higher
- MySQL: Version 5.6 or higher
- XAMPP/WAMP/LAMP (recommended for local development)
-
Clone the repository
git clone https://github.com/CallmeSen/Web2.git cd Web2 -
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
-
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";
- Open
-
Set up file permissions
chmod 755 admin/uploads/
-
Configure your web server
- Point your document root to the project folder
- Ensure
mod_rewriteis enabled (for Apache)
-
Access the application
- Frontend:
http://localhost/Web2/ - Admin Panel:
http://localhost/Web2/admin/
- Frontend:
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!
- Browse Products: Navigate through categories or use the search function
- Add to Cart: Click "Add to Cart" on any product page
- Checkout: Review cart and proceed to checkout
- Apply Coupon: Enter coupon code at checkout for discounts
- Track Orders: Login to view order history and status
- Login: Access
/admin/and login with admin credentials - Dashboard: View sales statistics and recent orders
- Manage Products: Add new products or edit existing ones
- Process Orders: View and update order statuses
- Generate Reports: Create sales reports for specific periods
index.php- Homepagesingle_product.php- Product detail pageshopping_cart.php- Shopping cartcheckout.php- Checkout processuser_login.php- User authenticationadmin/dashboard.php- Admin dashboardadmin/class/adminback.php- Core backend class
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
- Session-based authentication
- Password recovery system
- SQL injection prevention (using prepared statements recommended)
- Admin panel access control
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
For support, please open an issue in the GitHub repository or contact the development team.
- Payment gateway integration
- Email notifications
- Advanced product filtering
- Wishlist functionality
- Product comparison
- Multi-language support
- RESTful API
- Enhanced security features