Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

415
Views
WooCommerce - Add product Short Description to completed order email

I would like to have a product short description right under the product title in the completed-order email for customer. Thank you!

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Try this:

// Show product description in email notifications
add_action( 'woocommerce_order_item_meta_end', 'woo_completed_order_email_notification', 10, 4 );

function woo_completed_order_email_notification( $item_id, $item, $order = null, $plain_text = false ){
    // Only on email notifications
    if( is_wc_endpoint_url() ) return;

    if ($order &&  $order->get_status() == 'completed' ) { // change status accordingly

        $product = wc_get_product( $item->get_product_id() );
        $short_desc = $product->get_short_description();

        
        if( ! empty($short_desc) ) {
            // Display the product description
            echo '<div class="product-description"><p>' . $short_desc . '</p></div>';
        }
    }
}
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!