Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #1219844

    I found a code snippet here in the forum to add quantity fields on the WooCommere shop pages ( #1008227).

    It worked properly, but after the last updates, it adds only one article to the shopping cart instead of the number I’ve chosen on the overview page.

    Or sometimes, when I select more than one item and say ‘add to shopping cart’, the product page opens instead of the shopping cart. I have no idea, what’s going wrong, could you take look?

    Best regards,

    • This topic was modified 1 month, 1 week ago by  wpsonja.
    • This topic was modified 1 week, 6 days ago by  Nikko.

    Hey Sonja,
    Sorry for the late reply, and thanks for the login I took a look at the post where you got the code snippet and then investigated your add to cart buttons.
    I changed this part of the snippet: "quantity", jQuery( this ).val() );
    to this:
    add_to_cart_button.attr( "data-quantity", jQuery( this ).val() );
    and now it seemsto work correctly, please clear your browser cache and check.

    Best regards,


    Hey Mike,

    thanks, I checked it and it works correctly. You can close this threat.

    Best regards,


    Hi wpsonja,

    We’re glad to hear that :)
    Thanks for using Enfold and have a great day!

    Best regards,

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Problems with quantity field on WooCommerce shop pages’ is closed to new replies.