From 8b04d5fb5361763f291e3254ec863f76f8e2aacf Mon Sep 17 00:00:00 2001 From: Galip Tolga Erdem Date: Fri, 15 Sep 2023 18:27:07 -0400 Subject: [PATCH] Updated myOrders add review and product details --- .../Components/UserOrders/Default.cshtml | 8 +-- .../Pages/ProductDetail.cshtml | 55 +++++++++++-------- 2 files changed, 37 insertions(+), 26 deletions(-) diff --git a/apps/public-web/src/EShopOnAbp.PublicWeb/Components/UserOrders/Default.cshtml b/apps/public-web/src/EShopOnAbp.PublicWeb/Components/UserOrders/Default.cshtml index e426ef10..e3e084fa 100644 --- a/apps/public-web/src/EShopOnAbp.PublicWeb/Components/UserOrders/Default.cshtml +++ b/apps/public-web/src/EShopOnAbp.PublicWeb/Components/UserOrders/Default.cshtml @@ -72,14 +72,14 @@ - + @L["UserOrders:ReturnProducts"] - + - + @L["UserOrders:AddReview"] - + diff --git a/apps/public-web/src/EShopOnAbp.PublicWeb/Pages/ProductDetail.cshtml b/apps/public-web/src/EShopOnAbp.PublicWeb/Pages/ProductDetail.cshtml index 9f1dc773..84b8c20d 100644 --- a/apps/public-web/src/EShopOnAbp.PublicWeb/Pages/ProductDetail.cshtml +++ b/apps/public-web/src/EShopOnAbp.PublicWeb/Pages/ProductDetail.cshtml @@ -19,42 +19,53 @@ @model EShopOnAbp.PublicWeb.Pages.ProductDetailModel @section styles{ - + } - @section scripts { - - - +@section scripts { + + + } -
-
-
-
- @{ +
+
+
+
+ @{ 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
- @product.Code - @L["StockCount"]: @product.StockCount +
+ +
+ +
@product.Name
+ @product.Code +
+
+
+ +
+
+ @L["StockCount"]: @product.StockCount +
+
+
+
+
+ Added to cart
-
- -
@if (product.StockCount > 0) { } else { - + } -
+
@productPrice
@@ -66,13 +77,13 @@ @if (GlobalFeatureManager.Instance.IsEnabled() && Model.IsPurschased) { - @await Component.InvokeAsync(typeof(RatingViewComponent), new {entityType = "quote", entityId = @product.Id.ToString()}) + @await Component.InvokeAsync(typeof(RatingViewComponent), new { entityType = "quote", entityId = @product.Id.ToString() }) } @if (GlobalFeatureManager.Instance.IsEnabled()) { - @await Component.InvokeAsync(typeof(CommentingViewComponent), new {entityType = "quote", entityId = @product.Id.ToString()}) + @await Component.InvokeAsync(typeof(CommentingViewComponent), new { entityType = "quote", entityId = @product.Id.ToString() }) }