E-Commerce Store
A complete online store with product catalog, shopping cart, order management, and Telegram notifications.
Features
- Product listing and detail pages
- Shopping cart with local storage
- Checkout form with validation
- Order creation with database storage
- Telegram notification on new orders
- Simulated payment with QR code
- Responsive design
Installation
- Clone the repository to your web server (e.g., Apache).
- Create a MySQL database and import the schema from the SQL section.
- Copy
.env.example to .env and fill in your credentials.
- Ensure
storage/logs/ is writable.
- Place product images in
images/products/ and a payment QR code in images/payment/qr.png.
- Configure your web server to point to the
store/ directory as document root.
- Access the site via your domain.
API Endpoints
GET /api/get_products.php - List all products
POST /api/create_order.php - Create a new order (JSON payload)
GET /api/get_orders.php?api_key=secret - List orders (admin)
Security
- The
.htaccess file prevents direct access to sensitive directories.
- Environment variables are used for credentials.
- Input sanitization and validation are applied.
License
MIT