Title: Delayed checking input?
Last modified: May 8, 2019

---

# Delayed checking input?

 *  [milosztor](https://wordpress.org/support/users/milosztor/)
 * (@milosztor)
 * [7 years ago](https://wordpress.org/support/topic/delayed-checking-input/)
 * Hi, I would like to know if there is a way to delay checking inserted quantity?
   My min. is 50, and when I try to insert e.g. 1000 it change me to 5000. The script
   thinks that I tried to insert value of 10.
 * Cheers.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdelayed-checking-input%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Algoritmika](https://wordpress.org/support/users/algoritmika/)
 * (@algoritmika)
 * [7 years ago](https://wordpress.org/support/topic/delayed-checking-input/#post-11510990)
 * Hi [@milosztor](https://wordpress.org/support/users/milosztor/),
 * Do you mean that you have enabled “Force JS check” options in the plugin?
 *  Thread Starter [milosztor](https://wordpress.org/support/users/milosztor/)
 * (@milosztor)
 * [7 years ago](https://wordpress.org/support/topic/delayed-checking-input/#post-11511080)
 * 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).
 *  Plugin Author [Algoritmika](https://wordpress.org/support/users/algoritmika/)
 * (@algoritmika)
 * [7 years ago](https://wordpress.org/support/topic/delayed-checking-input/#post-11515284)
 * Hi [@milosztor](https://wordpress.org/support/users/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/](https://wordpress.org/themes/oceanwp/),
   correct?
 *  Thread Starter [milosztor](https://wordpress.org/support/users/milosztor/)
 * (@milosztor)
 * [7 years ago](https://wordpress.org/support/topic/delayed-checking-input/#post-11517358)
 * Correct. Thank you, I wait 🙂
 *  Plugin Author [Algoritmika](https://wordpress.org/support/users/algoritmika/)
 * (@algoritmika)
 * [7 years ago](https://wordpress.org/support/topic/delayed-checking-input/#post-11531394)
 * Hi again [@milosztor](https://wordpress.org/support/users/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.
 *  Thread Starter [milosztor](https://wordpress.org/support/users/milosztor/)
 * (@milosztor)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/delayed-checking-input/#post-11701716)
 * 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, 11 months ago by [milosztor](https://wordpress.org/support/users/milosztor/).
 *  Plugin Author [Algoritmika](https://wordpress.org/support/users/algoritmika/)
 * (@algoritmika)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/delayed-checking-input/#post-11701830)
 * Hi [@milosztor](https://wordpress.org/support/users/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.
 *  Plugin Author [Algoritmika](https://wordpress.org/support/users/algoritmika/)
 * (@algoritmika)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/delayed-checking-input/#post-11717883)
 * Hi [@milosztor](https://wordpress.org/support/users/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?
 *  Thread Starter [milosztor](https://wordpress.org/support/users/milosztor/)
 * (@milosztor)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/delayed-checking-input/#post-11752841)
 * 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, 10 months ago by [milosztor](https://wordpress.org/support/users/milosztor/).
    -  This reply was modified 6 years, 10 months ago by [milosztor](https://wordpress.org/support/users/milosztor/).

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Delayed checking input?’ is closed to new replies.

 * ![](https://ps.w.org/product-quantity-for-woocommerce/assets/icon.svg?rev=2971558)
 * [Min Max Step Quantity Limits Manager for WooCommerce](https://wordpress.org/plugins/product-quantity-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/product-quantity-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/product-quantity-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/product-quantity-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/product-quantity-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/product-quantity-for-woocommerce/reviews/)

## Tags

 * [quantity](https://wordpress.org/support/topic-tag/quantity/)

 * 9 replies
 * 2 participants
 * Last reply from: [milosztor](https://wordpress.org/support/users/milosztor/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/delayed-checking-input/#post-11752841)
 * Status: not resolved