Skip to content

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.

Attributes Quick View - update on response

DanielŻuławskiac3edf28bbd1
diff --git a/src/Web/Grand.Web/Views/Shared/_ProductLayout.QuickViewVue.cshtml b/src/Web/Grand.Web/Views/Shared/_ProductLayout.QuickViewVue.cshtml
index 6bd96f1bb..719b7e0d7 100644
--- a/src/Web/Grand.Web/Views/Shared/_ProductLayout.QuickViewVue.cshtml
+++ b/src/Web/Grand.Web/Views/Shared/_ProductLayout.QuickViewVue.cshtml
@@ -1,4 +1,4 @@
-<b-modal id="ModalQuickView" ref="ModalQuickView" :dark-theme="darkMode" @@shown="initReservationQV()" size="xl" centered hide-footer hide-header>
+<b-modal id="ModalQuickView" ref="ModalQuickView" :dark-theme="darkMode" @@shown="initReservationQV();QuickViewShown()" size="xl" centered hide-footer hide-header>
<template v-if="PopupQuickViewVueModal !== null">
<form method="post" id="product-details-form" :action="'/' + PopupQuickViewVueModal.SeName">
<div itemscope itemtype="http://schema.org/Product" :data-productid="PopupQuickViewVueModal.Id">
diff --git a/src/Web/Grand.Web/wwwroot/theme/script/app.js b/src/Web/Grand.Web/wwwroot/theme/script/app.js
index fbab09ad9..1cc91883a 100644
--- a/src/Web/Grand.Web/wwwroot/theme/script/app.js
+++ b/src/Web/Grand.Web/wwwroot/theme/script/app.js
@@ -282,6 +282,11 @@
vm.PopupQuickViewVueModal.StockAvailability = response.data.stockAvailability;
}
})
+ },
+ QuickViewShown: function () {
+ if (vm.PopupQuickViewVueModal.ProductAttributes.length > 0) {
+ vm.attrchange(vm.PopupQuickViewVueModal.Id, vm.PopupQuickViewVueModal.HasCondition, true)
+ }
}
},
});