diff --git a/apps/public-web/src/EShopOnAbp.PublicWeb/Pages/ProductDetail.cshtml b/apps/public-web/src/EShopOnAbp.PublicWeb/Pages/ProductDetail.cshtml index 5656dc03..b4b9a644 100644 --- a/apps/public-web/src/EShopOnAbp.PublicWeb/Pages/ProductDetail.cshtml +++ b/apps/public-web/src/EShopOnAbp.PublicWeb/Pages/ProductDetail.cshtml @@ -8,10 +8,6 @@ @inject IStringLocalizer L @inject IOptions options -@{ - string pageHeader = Model.Product.Name; -} - @section styles{ } @@ -21,22 +17,16 @@ } -@if (Model.HasRemoteServiceError) -{ - pageHeader = L["CatalogServiceNotAvailable"]; -} -
-

@pageHeader

@{ var product = Model.Product; var productPrice = product.Price.ToString("C", new CultureInfo("en-US")); string productImage = !product.ImageName.IsNullOrEmpty() ? $"{options.Value.RemoteServices.Default.BaseUrl}product-images/{product.ImageName}" : $"{options.Value.RemoteServices.Default.BaseUrl}product-images/@product.ImageName"; string buyText = L["Index:AddToBasket"]; -
+
@product.Name
@@ -58,7 +48,7 @@
- } + }