Display Product Short Description in WooCommerce Checkout

In WooCommerce, Products are displayed in graphical form at Cart Page or Checkout. Though, some of the customers prefer a short description on cart page or checkout page as well. So if they are buying many products that are visually similar they can easily cross check them before confirming their order on checkout.

so, we show you how to display product short description in checkout page or cart page in WooCommerce.

Add this following code in your theme’s functions.php file of your active child theme (or theme).

After that go to your store and add any product to cart. Open your cart or checkout page, you can see that the product is added to cart with a new addition of products short description.

add_filter( 'woocommerce_get_item_data', 'checkout_product_description', 10, 2 );
function checkout_product_description( $other_data, $cart_item )
{
    $post_data = get_post( $cart_item['product_id'] );
    $other_data[] = array( 'name' =>  $post_data->post_excerpt );
    return $other_data;
}
Scroll to Top