Title: Automatic Order Complete
Last modified: July 16, 2019

---

# Automatic Order Complete

 *  Resolved [pvnanini](https://wordpress.org/support/users/pvnanini/)
 * (@pvnanini)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/automatic-order-complete/)
 * Hello I have a problem with the automatic order complete feature when there is
   only a gift card in the cart. I had alrready set that to mark the orders as “
   complete” but is not working, all new gift card orders are set as “processing”
   and the gift card mail is not send. I had deactivated all my plugins related 
   to orders but the problem is still there. Thanks in advance for your help.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fautomatic-order-complete%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [mrretail](https://wordpress.org/support/users/mrretail/)
 * (@mrretail)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/automatic-order-complete/#post-11738591)
 * I have this issue too.
 *  Plugin Author [pimwick](https://wordpress.org/support/users/pimwick/)
 * (@pimwick)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/automatic-order-complete/#post-11740558)
 * Sorry for the trouble, we are looking into reproducing this issue and will update
   this thread when we have more information.
 *  Plugin Author [pimwick](https://wordpress.org/support/users/pimwick/)
 * (@pimwick)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/automatic-order-complete/#post-11756620)
 * 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.
 *  [mrretail](https://wordpress.org/support/users/mrretail/)
 * (@mrretail)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/automatic-order-complete/#post-11757417)
 * 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.
 *  Plugin Author [pimwick](https://wordpress.org/support/users/pimwick/)
 * (@pimwick)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/automatic-order-complete/#post-11759861)
 * 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.
 *  Plugin Author [pimwick](https://wordpress.org/support/users/pimwick/)
 * (@pimwick)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/automatic-order-complete/#post-11802438)
 * Marking this thread as resolved since we haven’t heard back, however if you need
   further help just let us know!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Automatic Order Complete’ is closed to new replies.

 * ![](https://ps.w.org/pw-woocommerce-gift-cards/assets/icon-256x256.png?rev=1809373)
 * [PW WooCommerce Gift Cards](https://wordpress.org/plugins/pw-woocommerce-gift-cards/)
 * [Support Threads](https://wordpress.org/support/plugin/pw-woocommerce-gift-cards/)
 * [Active Topics](https://wordpress.org/support/plugin/pw-woocommerce-gift-cards/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pw-woocommerce-gift-cards/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pw-woocommerce-gift-cards/reviews/)

## Tags

 * [gift card](https://wordpress.org/support/topic-tag/gift-card/)
 * [order](https://wordpress.org/support/topic-tag/order/)

 * 6 replies
 * 3 participants
 * Last reply from: [pimwick](https://wordpress.org/support/users/pimwick/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/automatic-order-complete/#post-11802438)
 * Status: resolved