@model ProductDetailsModel.ProductPriceModel @using SmartStore.Web.Models.Catalog; @using SmartStore.Core.Domain.Catalog; @using SmartStore.Core.Infrastructure; @using SmartStore.Core; @using System.Text; @using System.Globalization; @using SmartStore.Services.Customers; @using System.Text.RegularExpressions; @{ string pattern = "(?(\\d+[\\s\\,\\.]?)+)"; string replacement = String.Format("${{val}} ", Model.ProductId); } @if (Model.DynamicPriceUpdate) { }
@if (Model.CustomerEntersPrice) { /*display nothing*/ } else if (Model.CallForPrice) { @T("Products.CallForPrice")dd } else { if (!String.IsNullOrWhiteSpace(Model.OldPrice)) { @T("Products.Price.OldPrice"): @Model.OldPrice
} if (!String.IsNullOrWhiteSpace(Model.OldPrice) || !String.IsNullOrWhiteSpace(Model.PriceWithDiscount)) { @T("Products.Price"): } class="product-price" itemprop="price" } > @if (Model.DynamicPriceUpdate && !Model.HidePrices && String.IsNullOrWhiteSpace(Model.PriceWithDiscount)) { @Html.Raw(Regex.Replace(Model.Price, pattern, replacement)) } else { @Html.Raw(Model.Price) } if (!String.IsNullOrWhiteSpace(Model.PriceWithDiscount)) {
@T("Products.Price.WithDiscount"): @if (Model.DynamicPriceUpdate && !Model.HidePrices) { @Html.Raw(Regex.Replace(Model.PriceWithDiscount, pattern, replacement)) } else { @Html.Raw(Model.PriceWithDiscount) } } }