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

Okay
  Public Ticket #2911490
Short description in WPC Quick View is not showing if it's a variation
Closed

Comments

  • Giacomo started the conversation

    Hi, 

    I'm using WPC Grouped Products and WPC Wuick View to show products details in the Grouped products. 

    The Quick View is set to show the short description of the Item and it works pefectly if the product is simple or variable (whole product).

    If I add a variation, though, the Quick View Popup is not showing any description at all, but only the name of the variatio in a p element.

    I check that the Variable products and each variations have description in them, so I think there must be something not getting the right description somewhere in the code.

    I attach a screenshot of the Quick View and one of the product variation.

    Thank You

  •  767
    Janilyn replied

    Hi Giacomo,

    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 Giacomo,

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

    add_action( 'woosq_product_summary', 'woosq_product_summary_variation', 20 );
    function woosq_product_summary_variation( $product ) {
        if ( $product && $product->is_type( 'variation' ) ) {
            echo '<div class="woocommerce-product-details__short-description">' . $product->get_description() . '</div>';
        }
    }

    Best regards,
    Dustin

  • Giacomo replied

    Thank you very much Dustin, 

    that works perfectly!

  •  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