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
@model ProductDetailsModel.ProductBreadcrumbModel
@if (Model.Enabled)
{
var count = 1;
<div class="container px-0">
<ol class="breadcrumb mb-0" itemscope="itemscope" itemtype="https://schema.org/BreadcrumbList">
@await Component.InvokeAsync("Widget", new { widgetZone = "productbreadcrumb_before" })
<li class="breadcrumb-item" itemprop="itemListElement" itemscope="itemscope" itemtype="https://schema.org/ListItem">
<a href="@Url.RouteUrl("HomePage")" target="_self">
<i class="b-icon bi bi-house-door" style="font-size:1.25em; position:relative; top:-1.25px" aria-hidden="true"></i>
<span itemprop="name">@Loc["Products.Breadcrumb.Top"]</span>
<span itemprop="item" itemscope itemtype="https://schema.org/Thing"
id="@Url.RouteUrl("HomePage")">
</span>
<meta itemprop="position" content="@count"/>
</a>
</li>
@foreach (var category in Model.CategoryBreadcrumb)
{
count++;
<li itemprop="itemListElement" itemscope="itemscope" itemtype="https://schema.org/ListItem" class="breadcrumb-item">
<a href="@Url.RouteUrl("Category", new { category.SeName })" target="_self">
<span itemprop="name">@category.Name</span>
<span itemprop="item" itemscope itemtype="https://schema.org/Thing"
id="@Url.RouteUrl("Category", new { category.SeName })">
</span>
<meta itemprop="position" content="@count"/>
</a>
</li>
}
<li itemprop="itemListElement" itemscope="itemscope" itemtype="https://schema.org/ListItem" class="breadcrumb-item active">
<strong class="current-item" itemprop="name">@Model.ProductName</strong>
<span itemprop="item" itemscope itemtype="https://schema.org/Thing"
id="@Url.RouteUrl("Product", new { SeName = Model.ProductSeName })">
</span>
<meta itemprop="position" content="@(count + 1)"/>
</li>
</ol>
</div>
}