diff --git a/TeleBot/TeleBot/Handlers/CallbackHandler.cs b/TeleBot/TeleBot/Handlers/CallbackHandler.cs index ebaa5f8..96c21f6 100644 --- a/TeleBot/TeleBot/Handlers/CallbackHandler.cs +++ b/TeleBot/TeleBot/Handlers/CallbackHandler.cs @@ -599,11 +599,14 @@ namespace TeleBot.Handlers // If variants exist, show variant selection with quickbuy flow if (product.Variants?.Any() == true) { + _logger.LogInformation("Product {ProductId} has {Count} variants, showing selection", productId, product.Variants.Count); await ShowVariantSelectionForQuickBuy(bot, callbackQuery.Message!, session, product, quantity); return; } - // Add to cart with base product + // Add to cart with base product (ONLY if no variants) + _logger.LogWarning("Quick buy for product {ProductId} ({Name}) with NO variants - using base price £{Price}", + productId, product.Name, product.Price); session.Cart.AddItem(productId, product.Name, product.Price, quantity, null, null); // Track quick buy action