Loading the requested page...
+Finding your perfect pebble...
@_selectedVariant.Price.Details
- -@_product.Description
+@_petRock.Description
@@ -14,7 +14,7 @@ [Parameter] public string TotalType { get; set; } [Parameter] - public List<(string productId, string productVarientId, int quantity)> ProductVariantIdAndQuantities { get; set; } + public List<(string petRockId, string petRockVarientId, int quantity)> PetRockVariantIdAndQuantities { get; set; } [Parameter] public string CurrencyCode { get; set; } @@ -26,18 +26,18 @@ { CurrencySymbol = _currencyService.GetCurrencyCharacter(CurrencyCode); - if (ProductVariantIdAndQuantities == null) + if (PetRockVariantIdAndQuantities == null) { return; } var fullTotalPrice = 0m; var dealTotalPrice = 0m; - foreach (var productVariantIdAndQuantity in ProductVariantIdAndQuantities) + foreach (var petRockVariantIdAndQuantity in PetRockVariantIdAndQuantities) { - var price = (await _productService.GetProductVariantById(productVariantIdAndQuantity.productId, productVariantIdAndQuantity.productVarientId)).Price; - fullTotalPrice += price.FullPriceGBP * productVariantIdAndQuantity.quantity; - dealTotalPrice += price.DealPriceGBP * productVariantIdAndQuantity.Item3; + var price = (await PetRockService.GetPetRockVariantById(petRockVariantIdAndQuantity.petRockId, petRockVariantIdAndQuantity.petRockVarientId)).Price; + fullTotalPrice += price.FullPriceGBP * petRockVariantIdAndQuantity.quantity; + dealTotalPrice += price.DealPriceGBP * petRockVariantIdAndQuantity.Item3; } FullTotalPrice = fullTotalPrice; DealTotalPrice = dealTotalPrice; diff --git a/src/Website/Company.Website/Products/PricingTotal.razor.css b/src/Website/Company.Website/PetRocks/PricingTotal.razor.css similarity index 100% rename from src/Website/Company.Website/Products/PricingTotal.razor.css rename to src/Website/Company.Website/PetRocks/PricingTotal.razor.css diff --git a/src/Website/Company.Website/Products/VariantSelector.razor b/src/Website/Company.Website/PetRocks/VariantSelector.razor similarity index 85% rename from src/Website/Company.Website/Products/VariantSelector.razor rename to src/Website/Company.Website/PetRocks/VariantSelector.razor index 4c214535..6de7b7cf 100644 --- a/src/Website/Company.Website/Products/VariantSelector.razor +++ b/src/Website/Company.Website/PetRocks/VariantSelector.razor @@ -1,8 +1,8 @@ -@inject ProductService _productService +@inject PetRockService PetRockService @foreach (var availableVariantType in _availableVariantTypes) { -