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
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
Hey Mike,
thanks, I checked it and it works correctly. You can close this threat.
Best regards,
Sonja
Hi wpsonja,
We’re glad to hear that :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko