Support » Plugin: WooCommerce Quantity Increment » When adding the product to cart the plus and minus disappeared

  • Hi,

    Thank you for the good plugin.

    I have one technical question.

    My Add to cart is working with ajax so when am adding new item to cart the quantity plus and minus were being disappeared.

    I have tried to add the button in woocommerce/templates/global/quantity-input.php and after cart update they remained but the +/- wasn’t working.

    When am refreshing the page they get back.

    Any idea please?

    Thanks in advance.

    https://wordpress.org/plugins/woocommerce-quantity-increment/

Viewing 10 replies - 1 through 10 (of 10 total)
  • For the simple product type plus and minus disappeared but for the variable product they stay but again did not work.

    In both cases after adding new product to cart quantity did not work.

    Any ideas why?

    Thanks in advance.

    I have the same problem on all pages. I think that plugin is not compatibile with last woocommerce.

    Hi

    I have the same problem. After updating the cart by the +/- buttons and updating the cart the + /- buttons disappear completely and the code is missing in the page to display the buttons.

    Pls fix asap ! Thanks

    New version (1.1.0) does not resolve the disappearing buttons on AJAX cart update.

    It’s OK for me. It works great on many pages.

    Hi,
    the problem is related to the cart ajax update. I’ve fix the bug by simply changing the file


    quantity-increment-buttons-for-woocommerce/assets/js/wc-quantity-increment-buttons.js

    at line 23

    from this

    jQuery(document).ready(function(){
    	wcqib_refresh_quantity_increments();
    });

    to this

    jQuery(document).ready(function(){
    	wcqib_refresh_quantity_increments();
    
    	jQuery( document ).on( 'updated_wc_div', function() {
    		wcqib_refresh_quantity_increments();
    	});
    
    });

    the callback “updated_wc_div” is trigger by woocommerce after the cart update.

    After change the javascript simply re-minify it and replace to
    quantity-increment-buttons-for-woocommerce/assets/js/wc-quantity-increment-buttons.min.js

    Please update the plugin code.
    Thanks!

    Hi Giorgio,
    I can’t find the archive “wc-quantity-increment-buttons.js” in my folder. There are only a “wc-quantity-increment.js” and a “wc-quantity-increment.min.js”.

    Can you help me? :-O

    Me too… anyone have an update?

    I have the same problem.

    I also can’t find the archive “wc-quantity-increment-buttons.js” in my folder. There is only a “wc-quantity-increment.js” and a “wc-quantity-increment.min.js”.

    Hi everybody,
    sorry for error i’ve written here but my answer was about another very similar plugin 🙁

    https://wordpress.org/plugins/quantity-increment-buttons-for-woocommerce/

    i apologize!
    Giorgio

    Hi Giorgio,

    No problem, thank you very much for your help.
    I tried it with the other plugin and with the change in line 23.

    I don’t know how to re-minify the min.js
    Can you help me with that?

    Right now the buttons appear, but when I change the quantity and hit “Update” the amount changes correctly, but the buttons disappear. Only if I refresh the page, the appear again.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘When adding the product to cart the plus and minus disappeared’ is closed to new replies.