Shop System
Full e-commerce functionality with product management, cart, and PayPal checkout.Features
- Product catalog with categories
- Sale prices and featured products
- Image galleries per product
- Shopping cart (persistent)
- PayPal checkout integration
- Order tracking with status updates
- Secure file delivery for digital products
- Coupon system
Admin URLs
| Page | URL |
|---|---|
| Products | /admin/products |
| Categories | /admin/shop-categories |
| Orders | /admin/orders |
| Coupons | /admin/coupons |
Adding Products
1
Create Category
Go to
/admin/shop-categories and add product categories.2
Add Product
Go to
/admin/products → Add Product3
Basic Info
- Name: Product name
- Price: Regular price
- Category: Select category
- Tags: Add searchable tags
4
Sale Settings
- Toggle On Sale
- Enter Discounted Price
5
Images
- Upload main product image
- Add gallery images (shown as thumbnails)
6
Description
Use rich text editor for:
- Description: Main product details
- Additional Info: Specs, sizing, etc.
7
Save
Toggle Featured for homepage display, then save.
Order Management
Order Statuses
| Status | Description |
|---|---|
placed | Order received |
processing | Being prepared |
completed | Delivered/fulfilled |
cancelled | Order cancelled |
Managing Orders
- Go to
/admin/orders - Click on an order to view details
- Update status from dropdown
- Add notes for each step (visible to customer)
- Upload delivery files for digital products
Secure File Delivery
For digital products:- Upload files to the order
- Customer receives secure, time-limited download links
- Links expire after 15 minutes
- Only the order owner can download
Customer Experience
Shopping Flow
- Browse products on
/shop - Click product to view details
- Add to cart
- View cart and adjust quantities
- Proceed to checkout
- Pay with PayPal
- View order status on dashboard
Customer Dashboard
Customers can view their orders at/dashboard:
- Order history
- Status tracking with visual stepper
- Download links for digital products
- Admin notes for each step
PayPal Integration
Setup
Add to your.env:
Test Mode
Use PayPal Sandbox for testing:- Create sandbox accounts in PayPal Developer
- Use sandbox Client ID
- Test purchases with sandbox buyer account
Database Schema
products Collection
orders Collection
Coupon System
Create discount coupons at/admin/coupons:
| Field | Description |
|---|---|
| Code | Coupon code (e.g., SAVE20) |
| Type | Percentage or fixed amount |
| Value | Discount value |
| Min Purchase | Minimum order amount |
| Expiry | Expiration date |
| Usage Limit | Max uses |