- changed status to resolved
Add-ons trigger admin-ajax on every char typed - even if add-on has no adjusted pricing or duration
Issue #750
resolved
This only happens for appointable products and not simple products.
To reproduce, check this example. Each time you type something in the text field, the wc_appointments_calculate_costs
ajax event is triggered. This causes the page to even become unresponsive in some cases (as the customer who reported it shows).
This is a copy of the product but it’s a simple product. There is no ajax call upon typing anything in the long text or the other field.
We should not trigger the ajax event on each char typed. Ideally, if the add-on does not have a price and duration adjustment, it should not trigger that request at all.
Reported here.
Comments (1)
-
- Log in to comment
Fixed with 4.9.11