littleshop/LittleShop
SysAdmin d9efababa6 Feature: Add product variant price override support
Enables individual variants to have their own prices, overriding the base product price.

**Database Changes:**
- Added Price (decimal?, nullable) to ProductVariants table
- Added ProductVariantId to OrderItems table with foreign key relationship
- Created index on OrderItems.ProductVariantId for performance

**API Changes:**
- ProductVariantDto: Added Price field
- CreateProductVariantDto: Added Price field with validation
- UpdateProductVariantDto: Added Price field
- OrderItemDto: Added ProductVariantId and ProductVariantName
- CreateOrderItemDto: Added ProductVariantId

**Business Logic:**
- OrderService: Variant price overrides base price (but multi-buy takes precedence)
- ProductService: All variant CRUD operations support Price field

**Admin UI:**
- CreateVariant: Price input with £ symbol and base price placeholder
- EditVariant: Price editing with £ symbol
- ProductVariants list: Shows variant price or "(base)" indicator

**Client Library:**
- Updated all DTOs to match server-side changes
- Full support for variant pricing in order creation

**Migration:**
- EF Core migration: 20251003173458_AddVariantPricing
- Backward compatible: NULL values supported for existing data

**Use Case:**
Products with size/color variants can now have different prices:
- Small T-shirt: £15.00 (variant override)
- Medium T-shirt: £18.00 (uses base price)
- Large T-shirt: £20.00 (variant override)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-03 18:35:43 +01:00
..
Areas/Admin Feature: Add product variant price override support 2025-10-03 18:35:43 +01:00
Controllers "Add-Multi-Buy-section-to-product-editor" 2025-10-03 14:41:00 +01:00
Data Add variant collections system and enhance ProductVariant with weight/stock tracking 2025-09-28 17:03:09 +01:00
DTOs Feature: Add product variant price override support 2025-10-03 18:35:43 +01:00
Enums Implement product variations, enhanced order workflow, mobile responsiveness, and product import system 2025-09-18 01:39:31 +01:00
Hubs Implement product multi-buys and variants system 2025-09-21 00:30:12 +01:00
Mapping Add customer communication system 2025-08-27 18:02:39 +01:00
Migrations Feature: Add product variant price override support 2025-10-03 18:35:43 +01:00
Models Feature: Add product variant price override support 2025-10-03 18:35:43 +01:00
Pages Add variant collections system and enhance ProductVariant with weight/stock tracking 2025-09-28 17:03:09 +01:00
publish Deploy LittleShop to Hostinger with Docker and BunkerWeb 2025-09-24 13:00:17 +01:00
Services Feature: Add product variant price override support 2025-10-03 18:35:43 +01:00
TestAgent_Results Initial commit of LittleShop project (excluding large archives) 2025-09-17 15:07:38 +01:00
Validators Fix: Order creation validation - Support CustomerInfo without IdentityReference 2025-10-03 18:02:23 +01:00
Views Implement product multi-buys and variants system 2025-09-21 00:30:12 +01:00
wwwroot Fix: PWA loading screen now only shows on app startup, not on every navigation 2025-10-03 12:14:48 +01:00
_Imports.razor Refactor payment verification to manual workflow and add comprehensive cleanup tools 2025-09-25 19:29:00 +01:00
.dockerignore Add customer communication system 2025-08-27 18:02:39 +01:00
AddMultiBuysTable.csx 🔒 SECURITY: Emergency fixes and hardening 2025-09-22 05:45:49 +01:00
admin-cookies.jar Initial commit of LittleShop project (excluding large archives) 2025-09-17 15:07:38 +01:00
admin-test.jar Initial commit of LittleShop project (excluding large archives) 2025-09-17 15:07:38 +01:00
App.razor Refactor payment verification to manual workflow and add comprehensive cleanup tools 2025-09-25 19:29:00 +01:00
apply-migration.sql Configure push notifications for internal-only access 2025-09-30 21:15:42 +01:00
appsettings.Development.json 🔒 SECURITY: Emergency fixes and hardening 2025-09-22 05:45:49 +01:00
appsettings.Hostinger.json Update BTCPay integration with production credentials and deployment documentation 2025-09-19 11:17:43 +01:00
appsettings.json Feature: Add elegant PWA loading screen 2025-10-02 16:39:47 +01:00
appsettings.Production.json 🔒 SECURITY: Emergency fixes and hardening 2025-09-22 05:45:49 +01:00
appsettings.Production.json.bak final 2025-08-27 22:19:39 +01:00
cookies.jar Initial commit of LittleShop project (excluding large archives) 2025-09-17 15:07:38 +01:00
cookies.txt Refactor payment verification to manual workflow and add comprehensive cleanup tools 2025-09-25 19:29:00 +01:00
Dockerfile Add customer communication system 2025-08-27 18:02:39 +01:00
littleshop-deploy.tar.gz Deploy LittleShop to Hostinger with Docker and BunkerWeb 2025-09-24 13:00:17 +01:00
littleshop-wizard-fixed.tar.gz Add customer communication system 2025-08-27 18:02:39 +01:00
LittleShop.csproj Fix CORS policy for admin.dark.side domain 2025-10-01 03:22:40 +01:00
littleshop.db.backup Update LittleShop configuration and deployment files 2025-09-18 19:27:58 +01:00
new-admin.jar Initial commit of LittleShop project (excluding large archives) 2025-09-17 15:07:38 +01:00
packages-microsoft-prod.deb Implement complete e-commerce functionality with shipping and order management 2025-08-20 17:37:24 +01:00
Program.cs CI/CD: Add GitLab CI/CD pipeline for Hostinger deployment 2025-10-01 13:10:48 +01:00
runtime-cookies.txt Add customer communication system 2025-08-27 18:02:39 +01:00
temp_migration.sql Configure push notifications for internal-only access 2025-09-30 21:15:42 +01:00
test-cookies.txt Add customer communication system 2025-08-27 18:02:39 +01:00
test-new-admin.jar Initial commit of LittleShop project (excluding large archives) 2025-09-17 15:07:38 +01:00
test-session.jar Initial commit of LittleShop project (excluding large archives) 2025-09-17 15:07:38 +01:00
test-session.txt Add customer communication system 2025-08-27 18:02:39 +01:00
test-wizard.html Add customer communication system 2025-08-27 18:02:39 +01:00
wizard-result.html Add customer communication system 2025-08-27 18:02:39 +01:00
wizard.html Add customer communication system 2025-08-27 18:02:39 +01:00