• Is is possible to add the attribute description after the attribute name? I know i can show the variations description but i don’t want to use this because of a problemens with the product feed (want to use main description).

    • This topic was modified 3 years, 10 months ago by bwcloudy.
Viewing 1 replies (of 1 total)
  • Plugin Author WPClever

    (@wpclever)

    Hi @bwbos

    Yes! You can do that by adding below snippet (How to add custom code?):

    add_filter( 'woovr_variation_info', 'woovr_your_variation_info', 99, 2 );
    function woovr_your_variation_info( $info, $variation ) {
    	$info .= '<div class="woovr-variation-extra">Your extra information here! This is variation ID ' . $variation->get_id() . '</div>';
    
    	return $info;
    }

    Just keep the filter hook and function, you can change the text as you want.
    And the result https://www.screencast.com/t/XQSdbiNWr8G

Viewing 1 replies (of 1 total)
  • The topic ‘Add attribute description after variation name.’ is closed to new replies.