• Resolved corienb

    (@corienb)


    The plugin installs without errors, the buttons show up, the quantity changes up and down when I click the buttons. But no matter what quantity I enter, the quantity that gets added to the cart is always 1.

    I did some amateur troubleshooting, and added a bunch of console.log() to the scripts.js file. The .plus or .minus button click correctly trigger qty.val(val + step); or qty.val(val – step);

    When I unhide the <span class=”wqpmb_plain_input”> that value stays 1.

    Working on localhost so no URL.
    Tested with my own theme, and with Storefront theme, same thing happens – always only 1 items gets added to the cart. In the cart page, the value does update correctly and stays correct when I hit the “update cart” button.

    Wordpress 6.0 WooCommerce 6.5.1. No errors in Console or Debug.

    Could you please help me fix this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Fazle Bari

    (@fazlebari)

    Storefront Version: 4.1.0
    Version: 4.1.0
    WooCommerce 6.5.1

    I have checked with Storefront theme, it’s working fine. Make sure that your quantity is not controlled by another plugin.

    With ‘wqpmb_plain_input’ class this plugin hides the default value. it’s increasing value with javascript. That should not be a problem.

    You can tell me your theme name as well. I will test with your theme also.

    You can contact again when your site will live.

    Thread Starter corienb

    (@corienb)

    Thank you very much!
    I have sent you an email through your website (the contact email that is listed on your codeastrology website).

    It’s something with my theme because Storefront DOES work fine after all (just does not visibly update the hidden quantity field).
    When I click the + button on my page, it also triggers the javascript code for the – so it always stays 1, but I can’t figure out why that happens.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Quantity does not ‘update’, always 1 in cart’ is closed to new replies.