Woocommerce Invoice

Send invoices to your WooCommerce customers

Author:pickplugins (profile at wordpress.org)
WordPress version required:4.1
WordPress version tested:5.6
Plugin version:1.0.2
Added to WordPress repository:23-05-2018
Last updated:17-12-2020
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://pickplugins.com
Total downloads:975
Active installs:10+
plugin download
Click to start download

No more tense with Invoice. This plugin will send invoices directly to your customer’s email as an attachment automatically when ever you like. Besides the invoices can be preview and download any time.

PickPlugins Invoice for WooCommerce by http://pickplugins.com

Plugin Features

  • Shop info with Logo
  • Send invoice automatically as email attachment of completed order and others order status.
  • Custom invoice template by filter hook, you can generate your own invoice template.
  • User can download invoice from order list under my account page.
  • User can preview invoice from order list under my account page.
  • Admin can download invoice from order list page.

Shortcodes

Order Invoice

Create a page first and the paste the following shortcode to display the invoice for specific order. You just need to pass the order_id="1232" in the shortcode. You can also pass any specific template for the output, like template="flat"

[order-invoice order_id="X" template="XXXXX"]

Filter Hooks

wooin_invoice_templates_internal

With this filter hook, you can easily add new Templates. But you just need to place it inside wp-content/plugins/woo-invoice/templates/invoice-templates/my-template Each template should have minimum 3 files.

* my-template.png
 * style.css
 * template.php



    // Add New template
     function add_my_template( $templates ){

         $templates['my-template'] = __( 'My Template', 'text-domain' );

         return $templates;
     }
     add_filter( 'wooin_invoice_templates_internal', 'add_my_template' );

wooin_invoice_templates

Now imagine that you want to add a custom template from external source, not from that specific directory, then you can do that easily with this filter hook.

    // Add New template from other directory
           function add_custom_template( $templates ){

               $templates[ 'custom-template' ] = array(
                'label'         => __( 'Custom Template', 'text-domain' ),
                   'thumb'      => 'URL of the thumbnail source',
                   'stylesheet'     => 'Stylesheet of the template',
                   'template'       => 'Directory of the template file',
               );
            return $templates;
           }
           add_filter( 'wooin_invoice_templates', 'add_custom_template' );

Translation

Please find the ‘en.po’ for default translation file under ‘languages’ folder and add your own translation. you can also contribute in translation, please contact us http://www.pickplugins.com/contact/