attribute in a brief description
-
Hello, tell me how to make the product attribute appear, in the short description, not in the form of text, but in the image, and if you can then click on it to open a large image.
I was given a function, but it only shows the attribute name.
function devise_woo_get_pa(){
$terms_atr = get_the_terms( $post->ID, ‘pa_tsvet’ );
if ( $terms_atr && ! is_wp_error( $terms_atr ) ) {
echo ”;
foreach ( $terms_atr as $term_atr ) {
echo $term_atr->name;
}
}
else {echo “”;}
}
add_action(‘woocommerce_single_product_summary’, ‘devise_woo_get_pa’, 13);
Hi,
Sorry, but we don’t have an instruction for such customization.
Kind Regards