• Resolved xalone

    (@xalone)


    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://www.ads-software.com/plugins/woocommerce-delivery-notes/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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' )

    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?

    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?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘customer should print invoice only if the order is completed’ is closed to new replies.