Html 如何从nopcommerce 4.3中的产品类别页面中删除价格

Html 如何从nopcommerce 4.3中的产品类别页面中删除价格,html,asp.net-mvc,themes,categories,nopcommerce,Html,Asp.net Mvc,Themes,Categories,Nopcommerce,我想从分类页面中删除产品价格 现在,令人惊讶的话题是,从我在本地服务器中的代码来看,它工作得很好,而我在live server中发布的代码却不工作 这是我的密码 @if(Model.ProductPrice.Price.Remove(0, 1) != "0.00") { <div class="prices"> @if (!string.IsNullOrEmpty(Model.ProductPrice.OldPrice)

我想从分类页面中删除产品价格

现在,令人惊讶的话题是,从我在本地服务器中的代码来看,它工作得很好,而我在live server中发布的代码却不工作

这是我的密码

@if(Model.ProductPrice.Price.Remove(0, 1) != "0.00")
{
    <div class="prices">
        @if (!string.IsNullOrEmpty(Model.ProductPrice.OldPrice))
        {
            <span class="price old-price">@Model.ProductPrice.OldPrice</span>
        }
        <span class="price actual-price">@Model.ProductPrice.Price</span>
        @if (Model.ProductPrice.DisplayTaxShippingInfo)
        {
            var inclTax = workContext.TaxDisplayType == 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
            <span class="tax-shipping-info">
                @T(inclTax ? "Products.Price.TaxShipping.InclTax" : "Products.Price.TaxShipping.ExclTax", Url.RouteUrl("Topic", new { SeName = Html.GetTopicSeName("shippinginfo") }))
            </span>
        }
        @if (!string.IsNullOrEmpty(Model.ProductPrice.BasePricePAngV))
        {
            <div class="base-price-pangv">
                @Model.ProductPrice.BasePricePAngV
            </div>
        }
    </div>
}
@if(Model.ProductPrice.Price.Remove(0,1)!=“0.00”)
{
@如果(!string.IsNullOrEmpty(Model.ProductPrice.OldPrice))
{
@Model.ProductPrice.OldPrice
}
@型号产品价格
@if(Model.ProductPrice.DisplayTaxShippingInfo)
{
var IncludingTax=workContext.TaxDisplayType==TaxDisplayType.IncludingTax;
//税信息已经包含在价格中(含税/不含税)。这就是为什么我们在这里只显示装运信息
//当然,您可以修改相应的区域设置以包含增值税信息
@T(inclTax?“Products.Price.TaxShipping.inclTax”:“Products.Price.TaxShipping.excletax”,Url.RouteUrl(“Topic”,new{SeName=Html.GetTopicSeName(“shippinginfo”)}))
}
@如果(!string.IsNullOrEmpty(Model.ProductPrice.BasePricePAngV))
{
@Model.ProductPrice.BasePricePAngV
}
}
我在Nop.Web=>主题中给出了条件=>商场=>视图=>共享=>

条件显示,若价格大于零,则表示else不显示

这段代码在本地完全可以工作,而在live server中却不能工作

注意:我也在crome private window中运行live站点,但仍然没有运行。