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

Okay
  Public Ticket #3005354
Displaying Variable Product Descriptions
Closed

Comments

  •  1
    Corey Schmidt started the conversation

    Is it possible to display the description specific to a product variable when showing variable products in a group product page?

  •  767
    Janilyn replied

    Hi Corey,

    Thank you for contacting WPClever Support Forum. We are off at the weekend so today I am able to process your ticket.

    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
    Corey Schmidt replied

    Just checking in to see if there are any potential solutions? Thanks!

  •  1,222
    Dustin replied

    Hi Corey,

    I'm so sorry for the late reply!

    Please add the below custom code (How to add custom code?)

    add_filter( 'woosg_item_description', 'woosg_item_description_variation', 99, 2 );
    function woosg_item_description_variation( $desc, $product ) {
        if ( $product->is_type( 'variation' ) ) {
            return $product->get_description();
        }
        return $desc;
    }

    Best regards,
    Dustin

  •  1
    Corey Schmidt replied

    Worked perfect, thank you.

  •  1,222
    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! ♥

    Best regards,
    Dustin