littleshop/LittleShop/Areas/Admin/Views
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
..
Account Add Pending Payment tab and rebrand to TeleShop Admin 2025-09-24 15:55:15 +01:00
Activity Implement product multi-buys and variants system 2025-09-21 00:30:12 +01:00
BotActivity Add product variants system and live bot activity dashboard 2025-09-24 23:00:20 +01:00
Bots Configure BTCPay with external nodes via Tor 2025-09-19 12:14:39 +01:00
Categories Fix: Categories Edit IsActive checkbox now works both ways 2025-10-03 13:48:56 +01:00
Dashboard Add Pending Payment tab and rebrand to TeleShop Admin 2025-09-24 15:55:15 +01:00
Messages final 2025-08-27 22:19:39 +01:00
Orders Fix order status update form - add CSRF token and correct enum values 2025-09-24 16:32:26 +01:00
Products Feature: Add product variant price override support 2025-10-03 18:35:43 +01:00
Reviews Initial commit of LittleShop project (excluding large archives) 2025-09-17 15:07:38 +01:00
Shared Fix: Correct Variants menu to use VariantCollections controller 2025-10-03 14:34:27 +01:00
ShippingRates Fix missing CSRF tokens in all delete forms 2025-09-24 18:02:17 +01:00
SystemSettings Deploy LittleShop to Hostinger with Docker and BunkerWeb 2025-09-24 13:00:17 +01:00
Users Fix missing CSRF tokens in all delete forms 2025-09-24 18:02:17 +01:00
VariantCollections Add variant collections system and enhance ProductVariant with weight/stock tracking 2025-09-28 17:03:09 +01:00
_ViewStart.cshtml Implement complete e-commerce functionality with shipping and order management 2025-08-20 17:37:24 +01:00