btcpayserver / woocommerce-plugin

Plugin for connecting Woocommerce with BTCPayServer
https://btcpayserver.org/
Other
51 stars 41 forks source link

Fix order callback for authenticated users #30

Closed jooray closed 5 years ago

jooray commented 5 years ago

If you make an order and you are logged in as admin, the class of the order is WC_Admin_Order, not WC_Order, so the callback will not work.

jooray commented 5 years ago

This might have to do something with #28. I first thought that WC_Admin_Order has to do with logged in users, but it seems it is a feature of Woocommerce Admin plug-in when one is logged in.

NicolasDorier commented 5 years ago

will make a new release with this! thanks

NicolasDorier commented 5 years ago

@jooray I pushed 3.0.8 to Wordpress plugin directory. Can you give a try?

jooray commented 5 years ago

Something's still off, this error is handled. I mentioned it in #30