Bundled product price

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Please check https://www.larsenlights.com/jd-4x55-series  and tell me how to hide the price for each product in the bundle.



Kenny Larsen
5 years ago
Hello Kenny,

Are you using grouped products in nopCommerce?

I don't think it is quite possible to hide prices here without making any customization to view page or source code.
5 years ago
Hello,

I think this is group product.

As atul said you have to customize than it is absolutely right

You have to hide price with jquery or directly comment code.

You can get that code from _productPrice.cshtml page.

make sure this is partial page and nop calling from different place.

You have to set your customization based on your need.

Hope , you will understand.
5 years ago
Just a guess... Try making the value for this language resource blank:

   products.productattributes.priceadjustment
5 years ago
New York

New York wrote:
Just a guess... Try making the value for this language resource blank:

   products.productattributes.priceadjustment


I tried your suggestion, but no luck, thank you anyway - would have been nice and easy.


nopAdvance / sk5202

I am not a programmer, but if you would like a job I would hire you to do this for me.

My _productPrice.cshtml  file looks like this




@model ProductDetailsModel.ProductPriceModel
@using Nop.Core
@using Nop.Core.Domain.Tax
@using Nop.Core.Infrastructure
@using Nop.Web.Models.Catalog;
@if (!Model.CustomerEntersPrice)
{
    <div class="prices" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
        @if (Model.CallForPrice)
        {
        @*call for price*@
            <div class="product-price call-for-price">
                <span>@T("Products.CallForPrice")</span>
            </div>
        }
        else
        {
            if (Model.IsRental)
            {
                <div class="rental-price">
                    <label>@T("Products.Price.RentalPrice"):</label>
                    <span>@Model.RentalPrice</span>
                </div>
            }
            if (!String.IsNullOrWhiteSpace(Model.OldPrice))
            {
            @*old price*@
                <div class="old-product-price">
                    <label>@T("Products.Price.OldPrice"):</label>
                    <span>@Model.OldPrice</span>
                </div>
            }
            <div class="@if (String.IsNullOrWhiteSpace(Model.PriceWithDiscount))
                        {
                            <text>product-price</text>
                        }
                        else
                        {
                            <text>non-discounted-price</text>
                        }">
                @if (!String.IsNullOrWhiteSpace(Model.OldPrice) || !String.IsNullOrWhiteSpace(Model.PriceWithDiscount))
                {
                    @*display "Price:" label if we have old price or discounted one*@
                    <label>@T("Products.Price"):</label>
                }
                @*render price*@<span @if (String.IsNullOrWhiteSpace(Model.PriceWithDiscount))
                                      {
                                          <text> itemprop="price" content="@Model.PriceValue.ToString("0.00", System.Globalization.CultureInfo.InvariantCulture)" class="price-value-@(Model.ProductId)" </text>
                                      }>
                    @Html.Raw(Model.Price)
                </span>
            </div>
            if (!String.IsNullOrWhiteSpace(Model.PriceWithDiscount))
            {
            @*discounted price*@
                <div class="product-price discounted-price">
                    <label>@T("Products.Price.WithDiscount"):</label>
                    <span itemprop="price" content="@Model.PriceValue.ToString("0.00", System.Globalization.CultureInfo.InvariantCulture)" class="price-value-@(Model.ProductId)">
                        @Html.Raw(Model.PriceWithDiscount)
                    </span>
                </div>
            }
            if (!String.IsNullOrEmpty(Model.BasePricePAngV))
            {
                <div class="base-price-pangv">
                    @Model.BasePricePAngV
                </div>
            }
            if (Model.DisplayTaxShippingInfo)
            {
                var inclTax = EngineContext.Current.Resolve<IWorkContext>().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
                <div class="tax-shipping-info">
                    @T(inclTax ? "Products.Price.TaxShipping.InclTax" : "Products.Price.TaxShipping.ExclTax", Url.RouteUrl("Topic", new {SeName = Html.GetTopicSeName("shippinginfo")}))
                </div>
            }
            if (!String.IsNullOrEmpty(Model.CurrencyCode))
            {
                <meta itemprop="priceCurrency" content="@Model.CurrencyCode"/>
            }
        }
    </div>
}




Thanks,

Kenny
5 years ago
Hello Kenny,

Yes we can discuss your requirement more precisely. Can you send us an email on [email protected] and we will reply you there?

Also, do you need a plugin or customization in default source code of nopCommerce?

Which version of nop are you using?

Thank you,
Atul
5 years ago
This is determined in a local string resource.

Go to your admin and change Products.ProductAttributes.PriceAdjustment from

{0} [{1}{2}]

to:

{0}

and it will only show the name.

This changes it for ALL attributes, so NONE of them will show the "[+$50.00]" anymore.

You can change checkout attributes with shoppingcart.checkoutattributes.priceadjustment... as well.
5 years ago
bfranklin825 wrote:
This is determined in a local string resource.

Go to your admin and change Products.ProductAttributes.PriceAdjustment from

{0} [{1}{2}]

to:

{0}

and it will only show the name.

This changes it for ALL attributes, so NONE of them will show the "[+$50.00]" anymore.

You can change checkout attributes with shoppingcart.checkoutattributes.priceadjustment... as well.



You are the man bfranklin825 and also new york, I was looking for the string in the wrong place....

It worked perfectly.

The shopping cart still shows the attribute price after changing that string to {0}, should I do something else or is it another string ?

Thank you so much.

Kenny
5 years ago
I'm assuming it's the attribute string that I posted at the bottom of my last post..
5 years ago
shoppingcart.checkoutattributes.priceadjustment
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.