Support » Plugin: WooCommerce Invoice Gateway » Missing Pay Button

  • Resolved Rick Radko

    (@r3df)


    Hi, I have a client that was using this plugin to allow business customers to get approvals on orders. Before the latest version, their clients were able to add an order, print it/or forward the order emails, get approval for the purchase and then go back and pay for the order. Now the pay button is missing from the orders list – as indicated in the change log.

    Would it be possible to put a filter in the code on an array of buttons to allow the choice of which buttons (if any) to remove? I would actually like to remove the cancel, but need the pay button.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @r3df,

    I had some free time today and I have added the ability in v1.0.5 to add the buttons back using this filter below which can be added to a themes functions.php file.

    remove_filter( 'woocommerce_my_account_my_orders_actions', array( WC_Invoice_Gateway(), 'remove_wc_invoice_gateway_order_actions_buttons' ), 10, 2 );

    I hope this helps.

    Thread Starter Rick Radko

    (@r3df)

    Hi Stuart, Thank-you, that gets us back in business!

    Plugin Author Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @r3df,

    I’m happy I could offer a solution for you šŸ™‚

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Missing Pay Button’ is closed to new replies.