Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
checkout - scroll top after step
DanielŻuławskic81efa55dc2a
diff --git a/src/Web/Grand.Web/wwwroot/theme/script/public.checkout.js b/src/Web/Grand.Web/wwwroot/theme/script/public.checkout.jsindex ec9e3c92d..ab79cb227 100644--- a/src/Web/Grand.Web/wwwroot/theme/script/public.checkout.js+++ b/src/Web/Grand.Web/wwwroot/theme/script/public.checkout.js@@ -173,7 +173,6 @@ var vmorder = new Vue({},setStepResponse: function (response) {-if (response.data.update_section.name) {if (response.data.goto_section == "shipping") {var model = response.data.update_section.model;@@ -281,6 +280,8 @@ var vmorder = new Vue({});}+ vmorder.scrollToSection();+if (response.data.update_section) {vmorder.Checkout.gotoSection(response.data.update_section.name);return true;@@ -830,6 +831,14 @@ var vmorder = new Vue({runScripts(document.querySelector('.script-tag'))}});+ },+ scrollToSection() {+ var container = document.getElementById("checkout-steps");+ window.scrollTo({+ top: container.offsetTop,+ left: 0,+ behavior: 'smooth'+ });}},created() {