Checkbox field is duplicated at each Ajax update on checkout page
-
Hi There!
Very nice and effective plugin, with seamless integration!
I’ve noticed a bug. I’m working on a barebone theme based on _s with very little customization for Woocommerce, meaning that most of the job is done by woocommerce’s embedded templates with few action/filter overrides.
I noticed that anytime the checkout page generates an Ajax request (for the payment / order review sections), then the checkbox is cloned just below its position.
The woocommerce hooks that are affected by this particular behaviour (which is not only related to your plugin) are all the “woocommerce_review_order_* series.
I suggest you to add the woocommerce_checkout_order_review hook with a priority of 11, or higher than 10 on the “Opt-In Checkbox Location” list of the plugin’s option page. I’ve found this hook is not involved in Ajax updates, and does not generate clones!
- The topic ‘Checkbox field is duplicated at each Ajax update on checkout page’ is closed to new replies.