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.

Category/Collection layout - move featured products to the _CatalogProductViewVue

KrzysztofPajak0e6e47aa62cd
diff --git a/src/Web/Grand.Web/Views/Catalog/CategoryLayout.GridOrLines.cshtml b/src/Web/Grand.Web/Views/Catalog/CategoryLayout.GridOrLines.cshtml
index 4625a5638..34e144a71 100644
--- a/src/Web/Grand.Web/Views/Catalog/CategoryLayout.GridOrLines.cshtml
+++ b/src/Web/Grand.Web/Views/Catalog/CategoryLayout.GridOrLines.cshtml
@@ -115,12 +115,11 @@
<span>@Loc["Products.FeaturedProducts"]</span>
</h2>
<div class="form-row">
- @foreach (var item in Model.FeaturedProducts)
- {
+ <template v-for="Model in catalog.Model.FeaturedProducts">
<div class="col-lg-4 col-sm-6 col-6 product-container mb-2">
- <partial name="_CatalogProductView" model="item" />
+ <partial name="_CatalogProductViewVue" />
</div>
- }
+ </template>
</div>
</div>
}
diff --git a/src/Web/Grand.Web/Views/Catalog/CollectionLayout.GridOrLines.cshtml b/src/Web/Grand.Web/Views/Catalog/CollectionLayout.GridOrLines.cshtml
index 59728e23b..b6935d058 100644
--- a/src/Web/Grand.Web/Views/Catalog/CollectionLayout.GridOrLines.cshtml
+++ b/src/Web/Grand.Web/Views/Catalog/CollectionLayout.GridOrLines.cshtml
@@ -37,12 +37,11 @@
<span>@Loc["Products.FeaturedProducts"]</span>
</h2>
<div class="form-row">
- @foreach (var item in Model.FeaturedProducts)
- {
+ <template v-for="Model in catalog.Model.FeaturedProducts">
<div class="col-lg-4 col-sm-6 col-6 product-container mb-2">
- <partial name="_CatalogProductView" model="item" />
+ <partial name="_CatalogProductViewVue" />
</div>
- }
+ </template>
</div>
</div>
}