[Support request] Show product variations description in archives

Home Forums Support [Support request] Show product variations description in archives

Home Forums Support Show product variations description in archives

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

    Hello,
    in woocommerce are there product variations and each variation has got a description field.

    I’m trying to output this description under the product in shop pages, but I’m not able to…

    I tried with this, but I’m only able to show product attributes:

    //Show short description under product in archives
    function dan_excerpt_in_product_archives() {
        echo wp_trim_words( get_the_excerpt(), 10 );
    }
    add_action( 'woocommerce_after_shop_loop_item_title', 'dan_excerpt_in_product_archives', 40 );

    Do you know how can I achieve this?

    thanks

    #2350881
    Leo
    Staff
    Customer Support

    Hi there,

    Can you check with WooCommerce’ support team on this first?

    If they can provide a solution that works in a Twenty series WP default theme, the same solution should work in GeneratePress as well.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.