add image to invoice
-
Hi,
I read the FAQ in which you explain how to add image in the invoice.
I tried to run the suggested code by placing it in functions.php file in my standard storefront woocommerce theme – BUT NOTHING HAPPENS..
I need help please. I simply want to display image thumbnail in invoice
–haris
function example_product_image( $product ) {
if( isset( $product->id ) && has_post_thumbnail( $product->id ) ) {
echo get_the_post_thumbnail( $product->id, array( 40, 40 ) );
}
}
add_action( ‘wcdn_order_item_before’, ‘example_product_image’ );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘add image to invoice’ is closed to new replies.