This does partially work – it got the quantity field to appear next to every product. However, actually adding the product is really buggy. It’ll add the quantity of a different product seemingly at random, e.g. 3 product1’s added to cart by the user, then when attempting to add 6 product2s to cart it adds 3 instead. The next add to cart click on product2 will then add 6, then back to 3. Very odd. Is there a way to implement this easily on the Royal theme? I know there are some changes I can do to the add-to-cart.php file in woocommerce/loop and have tried that, but it didn’t seem to work out too well at all.
Any assistance is greatly appreciated!
Site URL: hidden Theme version: 1.7.1 WooCommerce version: 2.3.7
Some further testing revealed that the functions I pasted above are actually just adding product1 over and over, regardless of which add to cart btn is clicked, so obviously this solution isn’t going to work out.
Thanks for the response! This functionality that I mentioned works normally on a regular Woocommerce installation, but Royal’s ajax submission doesn’t seem to play nicely with what I’m doing here, which is really what I’m trying to solve – keep the quantity field on the Shop page and have it tie in with the ajax submission.