• Hello,

    is it possible to show in composite products the description of the underlying variants (s. picture)?

    Best regards,
    Zappo

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author WPClever

    (@wpclever)

    Hi,

    Variation description isn’t available for normal HTML select tag. Please use the ddSlick selector https://www.screencast.com/t/HeaBaCoGrvL0 then add below snippet (How to add snippet?):

    add_filter( 'wooco_product_description', 'your_wooco_product_description', 99, 2 );
    function your_wooco_product_description( $desc, $product ) {
    	if ( $product->is_type( 'variation' ) ) {
    		return '<div class="wooco-variation-desc">' . $product->get_description() . '</div>' . $desc;
    	}
    
    	return $desc;
    }

    Then, add below CSS code:

    .wooco-variation-desc {
        word-break: break-all !important;
        white-space: normal !important;
    }

    And the result https://www.screencast.com/t/WtoXiMBi

Viewing 1 replies (of 1 total)
  • The topic ‘Shop description of variants in composite products’ is closed to new replies.