WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Print Invoice & Delivery Note
[resolved] customer should print invoice only if the order is completed (4 posts)

  1. xalone
    Member
    Posted 3 months ago #

    Hi
    the new functionality to "Show print buttons on the "My Account" page" should invoice

    Is it possible to activate print button only if the customer Order is completed?
    tell me if Is this expected behaviour that I should change myself or can I expect a patch to fix?

    your plugin use less php ressource than other for generate pdf. good idea to use print option
    thnks and Good Work.

    https://wordpress.org/plugins/woocommerce-delivery-notes/

  2. piffpaffpuff
    Member
    Plugin Author

    Posted 3 months ago #

    in 3.2 the invoice is only printed for completed orders. in all other cases it displays a receipt.

    this can be changed with the wcdn_theme_print_button_template_type filter hook. an example to print the invoice for all order states:

    function my_theme_print_button_template_type( $type ) {
    return 'invoice';
    }
    add_filter( 'wcdn_theme_print_button_template_type', 'my_theme_print_button_template_type' )
  3. smelsworst
    Member
    Posted 3 months ago #

    the above is a good start, but what about an 'example' for what the original question was about? i.e. to show the print button only when the order status is complete rather than for all statuses?

  4. beekaybk
    Member
    Posted 3 months ago #

    i´m working with the newest version (3.2.1) and woocommerce version 2.1.9, but it dosn´t work.

    i´ve checked the permalink and the woocommerce print settings. everything seems correct. but... it dosn´t work, no matter what kind of permalinks i adjusted.

    would you please help me and take a look?

    http://www.ogoldo.com/wp/wordpress/mein-konto/

Reply

You must log in to post.

About this Plugin

About this Topic