@model ProductPriceModel @using Nop.Core @using Nop.Core.Domain.Tax @inject IWorkContext workContext @if (!Model.CustomerEntersPrice) {
@if (Model.CallForPrice) { @*call for price*@
@T("Products.CallForPrice")
} else { if (Model.IsRental) {
@T("Products.Price.RentalPrice"): @Model.RentalPrice
} if (!string.IsNullOrWhiteSpace(Model.OldPrice)) { @*old price*@
@T("Products.Price.OldPrice"): @Model.OldPrice
}
@if (!string.IsNullOrWhiteSpace(Model.OldPrice) || !string.IsNullOrWhiteSpace(Model.PriceWithDiscount)) { @*display "Price:" label if we have old price or discounted one*@ } @*render price*@ id="price-value-@(Model.ProductId)" class="price-value-@(Model.ProductId)" }> @Html.Raw(Model.Price)
if (!string.IsNullOrWhiteSpace(Model.PriceWithDiscount)) { @*discounted price*@
@T("Products.Price.WithDiscount"): @Html.Raw(Model.PriceWithDiscount)
} if (!string.IsNullOrEmpty(Model.BasePricePAngV)) {
@Model.BasePricePAngV
} if (Model.DisplayTaxShippingInfo) { var inclTax = await workContext.GetTaxDisplayTypeAsync() == TaxDisplayType.IncludingTax; //tax info is already included in the price (incl/excl tax). that's why we display only shipping info here //of course, you can modify appropriate locales to include VAT info there
@T(inclTax ? "Products.Price.TaxShipping.InclTax" : "Products.Price.TaxShipping.ExclTax", Url.RouteTopicUrl("shippinginfo"))
} }
}