Home Forums WoodMart support forum attribute in a brief description

attribute in a brief description

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #104847

    charigin69
    Participant

    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);

    #104888

    Artem Temos
    Keymaster

    Hi,

    Sorry, but we don’t have an instruction for such customization.

    Kind Regards

Viewing 2 posts - 1 through 2 (of 2 total)