#136189 Quantity Up/Down Arrows Not Working for Grouped Products

Landing Forums Jupiter WordPress Theme Quantity Up/Down Arrows Not Working for Grouped Products

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Peter James

    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

    Hi

    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.

    Regards

    Private
    Peter James
    This reply has been marked as private.
    Mohsin Al-Rabieai Support Team

    Hi Peter,

    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/plugins/woocommerce/templates/single-product/add-to-cart/grouped.php to wp-content/themes/jupiter-child/woocommerce/templates/single-products/add-to-cart/grouped.php and wp-content/themes/jupiter-child/framework/admin/customizer/woocommerce/templates/single-products/add-to-cart/grouped.php and 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:

    Screen-Shot-2021-11-25-at-11-57-20

    Or just copy the attached file (extract it, make sure the extracted file is named grouped.php) to wp-content/themes/jupiter-child/woocommerce/templates/single-products/add-to-cart/grouped.php and wp-content/themes/jupiter-child/framework/admin/customizer/woocommerce/templates/single-products/add-to-cart/grouped.php.

    It will resolve the issue.
    Hope it helps ūüôā

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
Login