Overview
The Ecom platform provides a robust product management system that supports both physical and digital products with advanced features including multi-language support, variant management, taxes, flash deals, and inventory control.Product Types
Supports both physical and digital products with dedicated workflows
Multi-Language
Built-in translation support for global e-commerce
Variant Management
Advanced SKU combinations with colors and custom attributes
Inventory Tracking
Real-time stock management with variant-level precision
Product Model
TheProduct model is the core entity for managing products in the system.
Key Relationships
Category Relationships
Category Relationships
Products support both a main category and multiple categories:Location:
~/workspace/source/app/Models/Product.php:27-35Brand & Vendor
Brand & Vendor
Each product belongs to a brand and has an associated user (seller):Location:
~/workspace/source/app/Models/Product.php:37-45Stock & Inventory
Stock & Inventory
Products have multiple stock entries for variant management:Stock is managed at the variant level, allowing different SKUs, prices, and quantities for each product variation.Location:
~/workspace/source/app/Models/Product.php:67-70Pricing & Taxes
Pricing & Taxes
Tax management with multiple tax rules per product:Products are eager-loaded with taxes for efficient price calculations.Location:
~/workspace/source/app/Models/Product.php:72-75Reviews & Queries
Reviews & Queries
Customer engagement features:Location:
~/workspace/source/app/Models/Product.php:52-60Multi-Language Support
Products support multiple translations through theProductTranslation model:
~/workspace/source/app/Models/Product.php:15-25
Translated Fields
- Product name
- Description
- Unit of measurement
Product Creation
TheProductController handles product creation with a multi-step wizard.
Store Method
~/workspace/source/app/Http/Controllers/ProductController.php:207-246
Variant Management
The platform supports advanced SKU combinations with colors and attributes.SKU Combination Generation
~/workspace/source/app/Http/Controllers/ProductController.php:545-575
Product Types
Physical vs Digital
The system differentiates between physical and digital products using scopes:~/workspace/source/app/Models/Product.php:92-100
Approved & Published
Products must be approved and published to be visible:~/workspace/source/app/Models/Product.php:107-110
Product Features
Flash Deals
Time-limited discounts with special pricing
Auction Products
Bidding system for auction-based products
Wishlist
Customer wishlist functionality
Today's Deal
Featured products for daily promotions
Featured Products
Highlighted products on homepage
Product Duplication
Clone products with all settings
Product Updates
The update method handles comprehensive product modifications:~/workspace/source/app/Http/Controllers/ProductController.php:313-395
Bulk Operations
Bulk Delete
~/workspace/source/app/Http/Controllers/ProductController.php:428-437
Status Management
Update Published Status
Update Published Status
~/workspace/source/app/Http/Controllers/ProductController.php:482-503Related Resources
Categories & Brands
Learn about product categorization and brand management
Cart & Checkout
Understand how products are added to cart and purchased