Plugin Author
taisho
(@taisho)
Hello,
thanks for reporting the issue. For now, I was able to trigger described behavior on your website and find the culprit of this problem which is the following part of HTML on the page, exactly the product class:
<div data-elementor-type="product-archive" data-elementor-id="522" class="elementor elementor-522 elementor-location-archive product" data-elementor-settings="[]">
This HTML element is a container for basically the whole product listing. Normally, such containers have the class products and all the listed shop items inside this container have class product, so if the product class was either removed or changed, things would work correctly.
The plugin tries to find the “Add to cart” button that corresponds to the clicked increment button or edited quantity field, by first finding the product and then the Add to cart button within the product:
var add_to_cart_button = jQuery( this ).parents( ".product" ).find( ".add_to_cart_button" );
Because the container of products also has product class, all Add to cart buttons on the page are mistakenly treated as the corresponding button.
I will think over this weekend if I can find a solution without breaking things for other users. If successful, I will ship it with the next minor plugin patch on Sunday.
My current idea is to simply replace .parents( ".product" ) with .closest( ".product" ).
Best regards,
Ryszard
-
This reply was modified 6 years, 8 months ago by
taisho.
-
This reply was modified 6 years, 8 months ago by
taisho.
-
This reply was modified 6 years, 8 months ago by
taisho.
Thanks for your fast response. Did you manage to fix it finally?
If not, and it’s a problem I have, do you know what could I do to fix the issue?
Thank you so much!
Plugin Author
taisho
(@taisho)
I’ve just released a new version – 2.5.1. It should fix the problem for you and I don’t see any way it would negatively affect other users.
Best regards,
Ryszard
Wow thank you so much, now it’s working perfectly.
I really appreciate your support and effort with this plugin. It’s just a 10/10.
You’re the best,
Dani
Plugin Author
taisho
(@taisho)
I’m glad it solved the issue. I would appreciate if you could rate the plugin to make it more popular:
https://ww.wp.xz.cn/support/plugin/qty-increment-buttons-for-woocommerce/reviews/#new-post