Closed BigActual closed 5 years ago
I installed a plugin that sets up conditional payments. Perhaps an extension that adds another Condition to the dropdown.
I think actually that https://woocommerce.com/products/woocommerce-order-status-control/ may solve the problem more elegantly. Ideally, I'd just hook into this to add an option to only set orders into a Pending Status for that Payment Gateway.
^ We will need the above plugin purchased to handle this in the cleanest possible way.
This has not been tested, as I'm not sure the best way to test something specific to a gateway like this (the code is specific to the Bank Transfer gateway, so a Test Gateway itself may not work). But the code is simple enough, that it should be fine. May be worth testing with a test product worth a couple dollars and making a real transaction though to ensure it goes into pending status.
Will it capture, but not process the bank transfer data? Checking.
I am not sure if it will, since it gets put into a "pending" status which seems to happen after WooCommerce has processed payment, unfortunately. I based this off the code that https://woocommerce.com/products/woocommerce-order-status-control/ uses which I believe would have had the same problem.
Did you find a solution to this in: https://wordpress.org/plugins/woo-product-request/
I have not had a chance to look into it yet.
I have a free half hour I'll start looking at it but may need to just leave notes and have you pick it up Monday.
Inventory has to be checked manually to make sure the horn was not sold in store.