“Comprehensive Explanation of Adding Buttons to Grouped Products”

This topic has 4 replies, 2 voices, and was last updated 1 years, 3 months ago ago by Rose Tyler

  • Avatar: Catholicans
    Catholicans
    Participant
    July 26, 2023 at 10:21

    “There is an ‘Add to Cart’ button for all products except for grouped products, which makes this section appear incomplete. Is there any option to include a button for grouped products as well?”

    Please refer the screenshots :
    1) https://snipboard.io/mINzkO.jpg
    2) https://snipboard.io/5FEqwx.jpg
    3) https://snipboard.io/BG5bPa.jpg

    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 26, 2023 at 11:00

    Hello, Catholicans,

    Thank you for getting in touch with us.

    By default, there is no such option. Please provide temporary wp-admin and FTP access. We will check what can be done to help you.

    Kind Regards,
    8theme team

    Avatar: Catholicans
    Catholicans
    Participant
    July 27, 2023 at 05:41

    I will share the credentials in private content area.

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 27, 2023 at 11:16

    Hello, Catholicans,

    Thank you for your response.

    We added for you next code snippet in child-theme/functions.php

    add_action('woocommerce_after_shop_loop_item_title', function() {
        global $product;
        if ($product->get_type() == 'grouped') {
            woocommerce_template_loop_add_to_cart();
        }
    }, 15);

    Now you have the “View products“ button on grouped products → https://prnt.sc/oZq-Bf_0qFW6.
    Waiting for your response!

    Kind Regards,
    8theme team

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.