Viewing 3 replies - 1 through 3 (of 3 total)
  • yeah sure, there is a question in the faq for it:

    What about the product image, can I add it to the invoice and delivery note?

    Yes, use the wcdn_order_item_before action hook. It allows you to add html content before the item name.

    An example that adds a 50px large product image. Paste the code in the functions.php file of your theme:

    function my_product_image( $product ) {
        if( isset( $product->id ) && has_post_thumbnail( $product->id ) ) {
            echo get_the_post_thumbnail( $product->id, array( 50, 50 ) );
        }
    }
    add_action( 'wcdn_order_item_before', 'my_product_image' );
    Thread Starter catnip_uk

    (@catnip_uk)

    Thank you kindly :o)

    function my_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', 'my_product_image' );

    this code doesn’t work when I paste it into the functions.php page inside my themes folder. I have it at the bottom.

    should i place it somewhere else above or is the bottom a good place. because it’s not working still.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add Product Thumbs On Packing List Email’ is closed to new replies.