In the AddToBasketForm.cshtml view there is a div created which seems to be there for some javascript to update the price of the current product based on the options selected.
@if (hasVariants)
{
// A container to populate the variant pricing via JavaScript
<div class="prodPrice price @(product.OnSale ? "price-onsale" : "") text-center variant-pricing" data-muivalue="variantprice"></div>
}
else
{
<div class="prodPrice price">@GetSingleProductPrice(product)</div>
}
It's not doing anything on my site (U7.5.3, M2.2.1) and it's not showing any errors. Is this just a place holder for the developer to build on or is it supposed to do something?
I'm not sure if I'm missing something or whether I'm supposed top fill in the gaps.
Update Product Variant Pricing
Hi,
In the AddToBasketForm.cshtml view there is a div created which seems to be there for some javascript to update the price of the current product based on the options selected.
It's not doing anything on my site (U7.5.3, M2.2.1) and it's not showing any errors. Is this just a place holder for the developer to build on or is it supposed to do something?
I'm not sure if I'm missing something or whether I'm supposed top fill in the gaps.
Cheers,
Crac
They should be working on install - do you have the scripts included in your master view?
Hi Rusty,
Apparently not ... working now!
Thanks for your help, as always.
Cheers,
Crac
is working on a reply...