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?
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() );
add_to_cart_button.attr( "data-quantity", jQuery( this ).val() );
and now it seemsto work correctly, please clear your browser cache and check.
thanks, I checked it and it works correctly. You can close this threat.
The topic ‘Problems with quantity field on WooCommerce shop pages’ is closed to new replies.