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

    Hi,
    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,
    Sonja

    • This topic was modified 4 years, 4 months ago by Nikko.
    #1222401

    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:
    add_to_cart_button.data( "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,
    Mike

    #1226729

    Hey Mike,

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

    Best regards,
    Sonja

    #1226754

    Hi wpsonja,

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

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Problems with quantity field on WooCommerce shop pages’ is closed to new replies.