Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Caractacus Downes 81 posts 314 karma points
    Sep 26, 2016 @ 11:11
    Caractacus Downes
    0

    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.

    @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.

    Cheers,

    Crac

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Sep 26, 2016 @ 15:42
    Rusty Swayne
    100

    They should be working on install - do you have the scripts included in your master view?

      <!-- new Merchello UI scripts -->
       <script src="~/App_Plugins/Merchello/client/js/merchello.ui.min.js"></script>
       <script src="~/App_Plugins/Merchello/client/js/merchello.ui.settings.js"></script>
       <script src="~/App_Plugins/Merchello/client/js/fasttrack.js"></script>
    
  • Caractacus Downes 81 posts 314 karma points
    Sep 26, 2016 @ 16:10
    Caractacus Downes
    0

    Hi Rusty,

    Apparently not ... working now!

    Thanks for your help, as always.

    Cheers,

    Crac

Please Sign in or register to post replies

Write your reply to:

Draft