From 1d39d391b82355f578dc87da2638d31c869f880a Mon Sep 17 00:00:00 2001 From: jithendraprasad9999 Date: Wed, 10 Aug 2022 16:01:34 +0530 Subject: [PATCH 1/2] Checkout attribute validation from Backend And unified checkout buttons code --- .../Views/ShoppingCart/CartSummary.cshtml | 44 +++++++------------ .../ShoppingCart/_CheckoutAttributes.cshtml | 6 +-- .../Views/ShoppingCart/_ModelScript.cshtml | 41 ++++++++++++++++- 3 files changed, 57 insertions(+), 34 deletions(-) diff --git a/src/Web/Grand.Web/Views/ShoppingCart/CartSummary.cshtml b/src/Web/Grand.Web/Views/ShoppingCart/CartSummary.cshtml index 9c9d21b57..74a13a6f7 100644 --- a/src/Web/Grand.Web/Views/ShoppingCart/CartSummary.cshtml +++ b/src/Web/Grand.Web/Views/ShoppingCart/CartSummary.cshtml @@ -187,42 +187,27 @@ else { + onclick="window.open('@Url.RouteUrl("PagePopup", new { SystemName = PageSeNameConstants.Conditionsofuse })', 450, 500, true)"> @Loc["Checkout.TermsOfService.Read"] }
@Loc["Checkout.TermsOfService.PleaseAccept"]
-
- - @Loc["Account.Login.CheckoutAsGuest"] - - - - @Loc["Checkout.Button.Login"] - - - @Loc["Checkout.Button"] - - -
- - +
+ + @Loc["Account.Login.CheckoutAsGuest"] + + + + @Loc["Checkout.Button.Login"] + + + @Loc["Checkout.Button"] + + +
@@ -232,6 +217,7 @@
+ @await Component.InvokeAsync("Widget", new { widgetZone = "order_summary_content_below" }) diff --git a/src/Web/Grand.Web/Views/ShoppingCart/_CheckoutAttributes.cshtml b/src/Web/Grand.Web/Views/ShoppingCart/_CheckoutAttributes.cshtml index 5091f1310..d2b1f7e46 100644 --- a/src/Web/Grand.Web/Views/ShoppingCart/_CheckoutAttributes.cshtml +++ b/src/Web/Grand.Web/Views/ShoppingCart/_CheckoutAttributes.cshtml @@ -15,10 +15,8 @@