.is-in-stock {
color: green;
}
.is-out-of-stock {
color: red;
}
@model ProductDetailsModel
@using Nop.Services.Localization
@inject ILocalizationService localizationService
@if (!string.IsNullOrWhiteSpace(Model.StockAvailability) || Model.DisplayBackInStockSubscription)
{
<div class="availability">
@if (!string.IsNullOrWhiteSpace(Model.StockAvailability))
{
bool outOfStock = string.Equals(localizationService.GetResource("products.availability.outofstock"), Model.StockAvailability, StringComparison.InvariantCulture);
string stockClass = "is-in-stock";
if (outOfStock)
{
stockClass = "is-out-of-stock";
}
<div class="stocking @stockClass">
<span class="label">@T("Products.Availability"):</span>
<span class="value" id="stock-availability-value[email protected]">@Model.StockAvailability</span>
</div>
}
@await Html.PartialAsync("_BackInStockSubscription", Model)
</div>
}
[u][/u]
https://www.nop-templates.com/nopcommerce-development-services
.mobile.nav-top .responsive-nav-wrapper.nav-up {
-webkit-transform: none;
transform: none;
}
.mobile .responsive-nav-wrapper {
background: #YOUR_COLOR !important; /* use the HEX code for the color you want */
}
.all-shops-page .page-title {
display: none;
}