toosad
Forum Replies Created
-
To clarify, the woocommerce_order_needs_payment filter snippet didn’t remove the payment method. No error was recorded.
Testing on the local site indicates 4.7.1 does fix it, however it indicates the fix is for backwards-compatibility. This means that ideally we should be using some other snippet to remove the payment methods. I found something on github indicating to use ‘woocommerce_order_needs_payment’ instead, however add_filter( ‘woocommerce_order_needs_payment’, ‘__return_false’ ); does not work for me.
As an aside. This change was apparently made because the cart object was unreliable (as it could be empty), I wonder if this means the ‘woocommerce_cart_needs_shipping’ filter will soon need changing to something else too. If so, a heads-up would be good.
Thank you for your replies.
The alternative pay later solution is not suitable to our needs.
Do you mean it is fixed in 4.7.1?
I will test this out and let you know if it is fixed.