christopherdarling
Forum Replies Created
-
Thanks! Thought that the Locking API might be possible or something
That’s a shame, seems a pretty logical use-case. Maybe I’ll create a feature request for itForum: Plugins
In reply to: [Tiered Pricing Table for WooCommerce] Variable product prices not updatingHey, we rolled back the plugin to the older version as that was working better so don’t have this live anywhere right now. It’s replicatable on a fresh Woo install with storefront theme though
ah good – seems to be fine now here too
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
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.
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.
No it’s JavaScript so either add it to a .js file and enqueue it or add it as an inline script
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(); });
- This reply was modified 2 years, 10 months ago by christopherdarling.
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.- This reply was modified 2 years, 11 months ago by christopherdarling.