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.

Replace <b-> tags in CategoryLayout.GridOrLines.cshtml file

PatrykPorabik0bdf96ea0000
diff --git a/src/Web/Grand.Web/Views/Catalog/CategoryLayout.GridOrLines.cshtml b/src/Web/Grand.Web/Views/Catalog/CategoryLayout.GridOrLines.cshtml
index e1c8b9c4c..e834402d6 100644
--- a/src/Web/Grand.Web/Views/Catalog/CategoryLayout.GridOrLines.cshtml
+++ b/src/Web/Grand.Web/Views/Catalog/CategoryLayout.GridOrLines.cshtml
@@ -23,35 +23,35 @@
var count = 0;
- <b-breadcrumb itemscope itemtype="http://schema.org/BreadcrumbList">
- <b-breadcrumb-item href="@Url.RouteUrl("HomePage")" title="@Loc["Categories.Breadcrumb.Top"]">
+ <div class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList">
+ <a class="breadcrumb-item" href="@Url.RouteUrl("HomePage")" title="@Loc["Categories.Breadcrumb.Top"]">
<b-icon icon="house-door" scale="1.25" shift-v="1.25" aria-hidden="true"></b-icon>
@Loc["Categories.Breadcrumb.Top"]
- </b-breadcrumb-item>
+ </a>
@foreach (var cat in Model.CategoryBreadcrumb)
{
count++;
var isLastCategory = cat.Id == Model.Id;
@if (isLastCategory)
{
- <b-breadcrumb-item active>
+ <a class="breadcrumb-item" active>
<strong class="current-item" itemprop="name">@cat.Name</strong>
<span itemprop="item" itemscope itemtype="http://schema.org/Thing"
id="@Url.RouteUrl("Category", new {SeName = cat.SeName})">
</span>
<meta itemprop="position" content="@count" />
- </b-breadcrumb-item>
+ </a>
}
else
{
- <b-breadcrumb-item href="@Url.RouteUrl("Category", new { SeName = cat.SeName })" title="@cat.Name" itemprop="item">
+ <a class="breadcrumb-item" href="@Url.RouteUrl("Category", new { SeName = cat.SeName })" title="@cat.Name" itemprop="item">
@cat.Name
<meta itemprop="position" content="@count" />
- </b-breadcrumb-item>
+ </a>
}
}
- </b-breadcrumb>
+ </div>
@await Component.InvokeAsync("Widget", new { widgetZone = "categorydetails_after_breadcrumb", additionalData = Model.Id })
}
@@ -62,52 +62,54 @@
@*Rendering category description*@
@if (!String.IsNullOrWhiteSpace(Model.Description))
{
- <b-card>
- @Html.Raw(Model.Description)
- </b-card>
+ <div class="card mb-2">
+ <div class="card-body">
+ @Html.Raw(Model.Description)
+ </div>
+ </div>
}
@await Component.InvokeAsync("Widget", new { widgetZone = "categorydetails_before_subcategories", additionalData = Model.Id })
@*Rendering subcategories*@
@if (Model.SubCategories.Any())
{
- <b-col cols="12" class="categoryGrid px-0">
- <b-form-row>
+ <div class="col-12 categoryGrid px-0">
+ <div class="form-row">
@foreach (var item in Model.SubCategories)
{
- <b-col md="4" cols="6" class="mb-2">
- <b-link href="@Url.RouteUrl("Category", new { SeName = item.SeName })" title="@item.PictureModel.Title">
- <b-card no-body
- tag="article"
- class="mb-2">
- <b-card-img-lazy src="@item.PictureModel.ImageUrl" alt="@item.PictureModel.AlternateText"></b-card-img-lazy>
- <b-card-body>
- <h5>@item.Name</h5>
- </b-card-body>
- </b-card>
- </b-link>
- </b-col>
+ <div class="col-md-4 col-6 mb-2">
+ <a href="@Url.RouteUrl("Category", new { SeName = item.SeName })" title="@item.PictureModel.Title">
+ <div class="card mb-2">
+ <article>
+ <img class="img-fluid" src="@item.PictureModel.ImageUrl" alt="@item.PictureModel.AlternateText">
+ <div class="card-body">
+ <h5>@item.Name</h5>
+ </div>
+ </article>
+ </div>
+ </a>
+ </div>
}
- </b-form-row>
- </b-col>
+ </div>
+ </div>
}
@await Component.InvokeAsync("Widget", new { widgetZone = "categorydetails_before_featured_products", additionalData = Model.Id })
@*Rendering featured products section*@
@if (Model.FeaturedProducts.Any())
{
<div class="page-separator"></div>
- <b-col cols="12" class="product-grid featured-product-grid px-0">
+ <div class="col-12 product-grid featured-product-grid px-0">
<h2 class="h5 text-left mb-3">
<span>@Loc["Products.FeaturedProducts"]</span>
</h2>
- <b-form-row>
+ <div class="form-row">
@foreach (var item in Model.FeaturedProducts)
{
- <b-col lg="4" sm="6" cols="6" class="product-container mb-2">
+ <div class="col-lg-4 col-sm-6 col-6 product-container mb-2">
<partial name="_CatalogProductView" model="item" />
- </b-col>
+ </div>
}
- </b-form-row>
- </b-col>
+ </div>
+ </div>
}
@await Component.InvokeAsync("Widget", new { widgetZone = "categorydetails_after_featured_products", additionalData = Model.Id })
<div id="catalog-products">
@@ -115,41 +117,43 @@
<partial name="_Selectors" />
<template v-if="catalog.Model.Products.length > 0">
<template v-if="catalog.Model.PagingFilteringContext.ViewMode == 'grid'">
- <b-col cols="12" class="product-grid px-0">
- <b-form-row>
+ <div class="col-12 product-grid px-0">
+ <div class="form-row">
<template v-for="Model in catalog.Model.Products">
- <b-col lg="4" sm="6" cols="6" class="product-container mb-2">
+ <div class="col-lg-4 col-sm-6 col-6 product-container mb-2">
<partial name="_CatalogProductViewVue" />
- </b-col>
+ </div>
</template>
- </b-form-row>
- </b-col>
+ </div>
+ </div>
</template>
<template v-else>
<div class="product-list">
- <b-col cols="12">
- <b-row>
+ <div class="col-12">
+ <div class="row">
<template v-for="Model in catalog.Model.Products">
<partial name="_CatalogProductListViewVue" />
</template>
- </b-row>
- </b-col>
+ </div>
+ </div>
</div>
</template>
<partial name="_Pagination" />
</template>
<template v-else>
- <b-alert variant="info" show class="my-3">
+ <div class="alert alert-info my-3">
@Loc["search.noresultstext"]
- </b-alert>
+ </div>
</template>
</div>
@*Rendering bottom description*@
@if (!String.IsNullOrWhiteSpace(Model.BottomDescription))
{
- <b-card>
- @Html.Raw(Model.BottomDescription)
- </b-card>
+ <div class="card">
+ <div class="card-body">
+ @Html.Raw(Model.BottomDescription)
+ </div>
+ </div>
}
@*Rendering rccently viewed products section*@