@media all and (min-width: 1025px) {
.product-grid .item-box .add-info {
opacity: 1;
position: relative;
height: auto !important;
border: 0;
}
.product-grid .item-box .product-rating-box {
opacity: 1;
margin-bottom: 10px;
}
.product-grid .item-box .buttons {
opacity: 1;
position: relative !important;
bottom: auto;
}
.product-grid .item-box .description {
display: none
}
.product-grid .item-box .buttons a:hover, .product-grid .item-box .buttons
input[type="button"]:hover, .product-grid .item-box .buttons .ajax-cart-button-wrapper:hover * {
height: 32px;
}
.product-grid .prices {
margin-bottom: 10px;
}
}
.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