Hi @milosztor,
Do you mean that you have enabled “Force JS check” options in the plugin?
Yes I have enabled Force JS but can’t see any difference (checked or not checked). I have to quickly write the number, otherwise it force me to min quantity. Try on your own, eg. try insert 200 quite slowly (for now Force JS is disabled).
Hi @milosztor,
Sorry for a late reply. It looks like this is coming from your theme. If you disable “Force JS check” then there should be no real-time correction with JavaScript at all. And if you enable “Force JS check” option, then the delay set in our plugin is 1000 ms. I will be looking into the theme. This is it – https://wordpress.org/themes/oceanwp/, correct?
Correct. Thank you, I wait 🙂
Hi again @milosztor,
Unfortunately I was not able to reproduce the issue – when “Force JS check” options are disabled, no realtime quantity correction happens even with OceanWP theme. Maybe you have some custom script that does this auto-correction? However in recent plugin version 1.6.2 I’ve added new “Period (ms)” option to “WooCommerce > Settings > Product Quantity > General > Advanced Options > Force JS check (periodically)”. It’s set to 1000 ms by default – please try setting it to a larger number to see if it changes anything.
The problem occurs when I enable Price by quantity. Everything else can be default but when I check this, the input field working wrong even if I set to to 5000 ms or change Force JS to whatever.
I would like to see on live how the price is changing when I type a quantity but if I insert to small number and click add to cart I want to see a popup/info in a “cloud” that I have to insert min. X.
-
This reply was modified 6 years, 10 months ago by
milosztor.
Hi @milosztor,
Thanks for the info. I’m now finishing new plugin version release, so I won’t be able to look into it today, but I will get back to this in next couple of days, hope that’s ok. Will get back to you here as soon as possible.
Hi @milosztor,
We’ve just released new plugin version 1.7.1, where I’ve fixed a JS error in “Price Display by Quantity” section. Could you please check if it’s ok now?
The same :/
P.S. Can you make your plugin working with Polylang so I can make different text for each language?
EDIT:
I have added setTimeout() to alg-wc-pq-price-by-qty.js file and it is woriking well.
setTimeout(
function() {
jQuery.ajax( {
type : 'POST',
url : alg_wc_pq_update_price_by_qty_object.ajax_url,
data : data,
success: function( response ) {
jQuery( 'p.price' ).html( response );
},
} );
}, 3000);
-
This reply was modified 6 years, 9 months ago by
milosztor.
-
This reply was modified 6 years, 9 months ago by
milosztor.