Sorry for the trouble, we are looking into reproducing this issue and will update this thread when we have more information.
By design, the “Auto Complete” will not work for the following payment methods:
- Cash on Delivery
- Direct Bank Transfer
If you are doing testing and using one of these payment methods it won’t auto-complete.
Follow these steps to allow the Auto Complete Order option to work for order that contain only Gift Cards, regardless of payment method.
1. Download the functions.php from your FTP server at /wp-content/themes/<your theme>/functions.php
2. Keep a backup of functions.php in case there are problems.
3. Edit functions.php and scroll to the very end and add this code.
Note: if the last line is “?>” then put this code *above* that line. Otherwise, this code goes at the very end of the file:
function custom_pwgc_ignore_autocomplete_payment_methods( $payment_methods ) {
$payment_methods = array();
return $payment_methods;
}
add_filter( 'pwgc_ignore_autocomplete_payment_methods', 'custom_pwgc_ignore_autocomplete_payment_methods' );
4. Save the functions.php file and re-upload it to your server.
If you have any problems, replace functions.php with your backup file.
I have added this code to my functions.php and it has made no difference. The payment method I am using is PayPal in Sandbox mode.
Can you create a WooCommerce Coupon for 100% off and perform the checkout that way? This will skip the need for payment and if the Auto Complete still does not work then it may be a conflict from another plugin.
Marking this thread as resolved since we haven’t heard back, however if you need further help just let us know!