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.

Compare products - fix double request

KrzysztofPajak2b110ba7f68b
diff --git a/src/Web/Grand.Web/Views/Product/CompareProducts.cshtml b/src/Web/Grand.Web/Views/Product/CompareProducts.cshtml
index 05f8a7f91..ab8211aa4 100644
--- a/src/Web/Grand.Web/Views/Product/CompareProducts.cshtml
+++ b/src/Web/Grand.Web/Views/Product/CompareProducts.cshtml
@@ -124,13 +124,11 @@
</div>
</template>
</div>
-<script asp-location="Footer" asp-order="300">
+<script asp-location="Footer" asp-order="909">
var specificationAttributes = new Vue({
data: () => ({
Model: @Json.Serialize(specificationAttributes),
}),
- })
- document.addEventListener("DOMContentLoaded", function () {
- vm.getCompareList('@Url.RouteUrl("CompareProducts")')
- })
+ });
+ vm.compareproducts = @Json.Serialize(Model)
</script>
\ No newline at end of file