• Resolved yos.c.bd

    (@yoscbd)


    Hi akk ??

    my customer whould like to be able to prints orders from woocomerncce “ordres” sction.

    He want the print to include the feature image of the invoice product.

    Is this supported by you plugin?

Viewing 1 replies (of 1 total)
  • Plugin Support Upendra Kapse

    (@wpupen)

    Hello,

    Yes, you can print the invoices of the orders from the WooCommerce>> Orders section in the backend using our plugin.

    And yes, we do have a filter that will add the feature image of the purchased product in the Invoice too. Here’s the code snippet that you can add to the functions.php file of your child theme to display the feature image in the Invoice:

    function example_product_image( $product ) {	
        if( isset( $product->id ) && has_post_thumbnail( $product->id ) ) {
            echo get_the_post_thumbnail(
                $product->id,
                array( 40, 40 ),
                array( 'loading' => false )
            );
        }
    }
    add_action( 'wcdn_order_item_before', 'example_product_image' );

    I hope this helps.

    Kind Regards,
    Upendra.

Viewing 1 replies (of 1 total)
  • The topic ‘can i include product feature image in prnting?’ is closed to new replies.