Hello @fdelbene,
Just to be sure, when you say custom theme, do you mean a custom template?
If so, try adding this code snippet to your custom template:
<?php
if ( !empty($item['product']) ) {
$_product = $item['product']->is_type( 'variation' ) ? wc_get_product( $item['product']->get_parent_id() ) : $item['product'];
if ( method_exists( $_product, 'get_short_description' ) ) {
echo $_product->get_short_description();
}
}
?>
Let me know if it works!
It worked excelent!!!
Thank you so much!!
Hello @fdelbene,
Glad to know it works!
By the way, this is also possible, without any code, using our Premium Templates. This extension includes a customizer that allows you to tailor your PDF documents, with product columns, totals rows, and custom blocks.
The customizer includes Product description columns for both short and long product description:
You can also use the placeholders {{product_description_short}}
,{{product_description_long}}
or {{product_description_variation}}
within Product column:
Have a nice day!