#136189 Quantity Up/Down Arrows Not Working for Grouped Products
Peter James 1 week, 4 days ago
The Up/Down Quantity arrows are not working for WooCommerce Grouped Products (they work fine for simple and variable products). An example can be seen on the staging site – https://displaysigns.staging.wpengine.com/product/test-group-product/. If I replace Jupiter with a basic theme such as 2015 these arrows work fine.Amir Rather Support Team 1 week, 3 days ago
Could you please send over your administrative WordPress access(in a private reply) so we can check what might be going on in the backend? We’ll need permission to debug this.
RegardsPrivatePeter James 1 week, 3 days agoThis reply has been marked as private.Mohsin Al-Rabieai Support Team 1 week, 2 days ago
You are right, I just reported it as a bug. It’s a theme issue. However, in order to fix that, you need to modify one file in your child theme. You need to copy
wp-content/themes/jupiter-child/framework/admin/customizer/woocommerce/templates/single-products/add-to-cart/grouped.phpand edit this line (73):
'input_value' => isset( $_POST['quantity'][ $grouped_product_child->get_id() ] ) ? wc_stock_amount( wc_clean( wp_unslash( $_POST['quantity'][ $grouped_product_child->get_id() ] ) ) ) : '', // phpcs:ignore WordPress.Security.NonceVerification.Missing
Add a 0 to the end:
'input_value' => isset( $_POST['quantity'][ $grouped_product_child->get_id() ] ) ? wc_stock_amount( wc_clean( wp_unslash( $_POST['quantity'][ $grouped_product_child->get_id() ] ) ) ) : '0', // phpcs:ignore WordPress.Security.NonceVerification.Missing
Like this image:
Or just copy the attached file (extract it, make sure the extracted file is named grouped.php) to
It will resolve the issue.
Hope it helps 🙂