Does anyone know of a way to get the description entered when you set up an attribute term (term_description) that's used as a variable to show up when someone selects that variable on the product page?
Some variables have lengthy descriptions, and I'd like to show them near the price when different variables are selected, as well as on the checkout pages below the selected product variable name.
I can't find any reference to this in the woocommerce docs. Best I've been able to do is pull the first term description using the lines below, but I can't get it to change to the selected one.
<?php $my_taxonomy = 'pa_myterm'; $terms = wp_get_post_terms( $post->ID, $my_taxonomy ); echo term_description($terms->term_id, $my_taxonomy); ?>