• After the last update I got the following problem with variated products:

    When switching from a variation with tiered prices to a variation without the tiers, the price for last one is not changed from the price for the first one.

    To reproduce at the link above: choose first rooted cutting (price 7.50$), then change to large plant. Price should change to 37$, but it still displays 7.50. If added to the shopping cart, it is added with the correct price though.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter astralex

    (@astralex)

    Guys, wrong prices displayed is a serious issue in a shop. Any solution to this?

    Have you found a solution for your store? I think I found a plant in your store where it works. ??

    Thread Starter astralex

    (@astralex)

    @p3lz3r no, I haven’t. Really need one. Can you send a link to that product please?

    I’m experiencing this for a clients site as well only when a product has variations and one of the variations doesn’t have a tiered pricing. For example;

    • variation ONE without tiered pricing
    • variation TWO with tiered pricing
    • Select variation TWO – the price updates and the table is shown
    • Select variation ONE – the price updates to the incorrect price (variation TWO)

    If the selected variation doesn’t have tiered pricing the code looks up the default price from the pricing table (which is from the previously selected variation), line 142 on the frontend js. Instead of the pricing table from the previous variation being hidden and then removed and re-added once the AJAX request has been returned it should be removed on found_variation event. I have added custom script to do this at the moment which seems to be working but would be great if this is fixed within the plugin code.

    Thread Starter astralex

    (@astralex)

    @christopherdarling could you possibly share your script? I would be very thankfull!

    Below is a trimmed version of what I am doing which is working fine

    $('form.variations_form').on('found_variation', function(e, variationData) {
      // @plugin tier-pricing-table plugin
      // Remove the pricing table so it can be re-added once it has been 
      // retrieved from the ajax request
      $('.price-rules-table').remove();
    });
    Thread Starter astralex

    (@astralex)

    Thank you @christopherdarling !

    Do I add it to functions.php?
    I got the following error when I try:
    syntax error, unexpected ‘(‘, expecting variable (T_VARIABLE) or ‘{‘ or ‘$’

    No it’s JavaScript so either add it to a .js file and enqueue it or add it as an inline script

    Thread Starter astralex

    (@astralex)

    @christopherdarling
    I’m sorry, I’m not a programmer. Could you please explain what is inline script and how/where do I add it?

    You’d need to do some research on those if you’re not sure how to do them, there should be a lot of topics out there that cover this, or hire someone to implement it for you. I’d be happy to help if you need assistance.

    Thread Starter astralex

    (@astralex)

    @christopherdarling Figured out how to do it and it works perfectly! Thank you! Strange the plugin developers still couldn’t fix it…

    Wonderful, pleased to hear it. Sometimes there just aren’t the resources available for them to fix things or motivation to do so, got to remember it’s open-source and often people’s free time we’re asking for here.

    Just thought i’d share that it looks like you may have another issue on your store, the wholesale prices appear for a few seconds and then disappear. I hope it helps

    Thread Starter astralex

    (@astralex)

    @christopherdarling Strange, I tryed 3 different browsers on PC and on Safari, but can’t replicate that problem. Working fine for me.

    ah good – seems to be fine now here too

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Price stoped updating for variable products’ is closed to new replies.