Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #2475082
Display SKU in grouped products
Closed

Comments

  • Chris Hill started the conversation

    Hi,

    On the product page, where I have set up a ''smart grouped' product it lists all my options down the right hand side.
    I want this section to display the SKU for each component product, preferably between the product name and the price.

    Is there any way I can do this?

    Thanks

  •  767
    Janilyn replied

    Hi Chris,

    Thank you for contacting WPClever Support Forum. 

    We’ve received your ticket and assigned one of our developers to help you with that. 

    He’ll be looking into your question and responding with specific instructions as soon as possible. 

    Please stay patient as we're having very heavy workloads, it might take some time for our developers to reach back.

    Best regards.

    Janilyn T. - WPClever Support Agent

  •  1,226
    Dustin replied

    Hi Chris,

    Please add below functions to current-theme (or child-theme) / functions.php

    add_action( 'woosg_after_item_name', 'your_woosg_after_item_name', 99, 1 );
    function your_woosg_after_item_name( $woosg_product ) {
        if ( $sku = $woosg_product->get_sku() ) {
            echo 'SKU: ' . $sku;
        }
    }

    Best regards,
    Dustin

  • Chris Hill replied

    Hi Frankie,

    Many thanks for your response. This is perfect, just what we wanted.

    Regards,

    Chris


  •  1,226
    Dustin replied

    You're welcome!smile.png

    If you are satisfied with our plugin and support, please reward it with a full five-star ★★★★★ rating.
    https://wordpress.org/support/plugin/wpc-grouped-product/reviews/?filter=5
    Thank you in advance! <3

    Best regards,
    Dustin