Title: Hardcoded order statuses
Last modified: January 23, 2020

---

# Hardcoded order statuses

 *  Resolved [Saul](https://wordpress.org/support/users/slightlyfaulty/)
 * (@slightlyfaulty)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/hardcoded-order-statuses/)
 * There is another thread ([Orders are recovered and done at the same time](https://wordpress.org/support/topic/orders-are-recovered-and-done-at-the-same-time/))
   that is marked as resolved, yet this really hasn’t been resolved.
 * You have hardcoded the “acceptable order statuses” to **completed** and **processing**
   without even providing a filter to change it with code.
 * Are you aware that the WooCommerce Authorize.Net Gateway plugin initially sets
   all orders to on-hold after authorizing the payment? Because of this every single
   one of my customers since installing this plugin has received a cart abandonment
   email. Luckily some of them were kind enough to let me know about the issue.
 * I’m also a developer so I understand that code can’t always be perfect, but hardcoding
   these statuses in like this is a bit of a cardinal sin in my opinion. If you 
   do manage to find 2 minutes to fix this, instead of adding a filter you should
   rather change it to `wc_get_is_paid_statuses()` as this is the correct way to
   do it.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhardcoded-order-statuses%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [Saul](https://wordpress.org/support/users/slightlyfaulty/)
 * (@slightlyfaulty)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/hardcoded-order-statuses/#post-12359753)
 * Ok I see you do have a filter `woo_ca_exclude_on_hold_order_from_tracking` specifically
   for the on-hold status in a different method than the one I was looking at. I
   still need to test that it works for my store, and it’s not really a proper solution
   to this as someone could be using a different order status, but at least it’s
   something for now.
 *  Plugin Support [CartFlows Team](https://wordpress.org/support/users/cartflows/)
 * (@cartflows)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/hardcoded-order-statuses/#post-12360115)
 * Hello [@slightlyfaulty](https://wordpress.org/support/users/slightlyfaulty/),
 * We appreciate your interest in our plugin.
 * Just to let you know that we have added the `woo_ca_exclude_on_hold_order_from_tracking`
   filter by doing the research and user requirements.
    Most of the payment gateways
   put the order on On-Hold status where customers assume that they had paid but
   still receiving abanded emails.
 * We are changing the order status in our plugin, not in woocommerce order status.
   
   If an order gets failed, then the order will mark as abanded, and customers will
   receive the email.
 * Still, we will look at code, as you suggested.
 * If you have any suggestions, please let us know. We are always welcome for suggestions
   and feedback.
 * Thank You!
 *  Thread Starter [Saul](https://wordpress.org/support/users/slightlyfaulty/)
 * (@slightlyfaulty)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/hardcoded-order-statuses/#post-12366402)
 * Well even after adding that filter in my customers are still receiving cart abandonment
   emails after placing their order, so something is just not working properly. 
   I even tried editing the hardcoded statuses, but it doesn’t seem to make a difference.
 * I was hopeful about this plugin but it looks like I will need to look for another
   one to use. Thanks for the quick reply anyway.
 *  Plugin Support [CartFlows Team](https://wordpress.org/support/users/cartflows/)
 * (@cartflows)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/hardcoded-order-statuses/#post-12367460)
 * Hello [@slightlyfaulty](https://wordpress.org/support/users/slightlyfaulty/),
 * Can you please share which payment gateway are you using? by opening a support
   ticket [here](https://cartflows.com/support/) so we can take a closer look at
   your issue?
 * Looking forward to hearing from you.
 *  Thread Starter [Saul](https://wordpress.org/support/users/slightlyfaulty/)
 * (@slightlyfaulty)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/hardcoded-order-statuses/#post-12368148)
 * I’m using the WooCommerce Authorize.Net Gateway plugin. It’s more than likely
   not as simple of an issue as it seems. Maybe I have some custom hook or plugin
   somewhere that is conflicting, but I really don’t have time to keep debugging
   the issue.
 *  Plugin Support [CartFlows Team](https://wordpress.org/support/users/cartflows/)
 * (@cartflows)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/hardcoded-order-statuses/#post-12368661)
 * Hello [@slightlyfaulty](https://wordpress.org/support/users/slightlyfaulty/),
 * We will check with Authorize.Net Plugin, and if found any issue, we will let 
   you know.
 * If you have any questions, please feel free to open a support ticket [here](https://cartflows.com/support/).
 * Thank You!

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

The topic ‘Hardcoded order statuses’ is closed to new replies.

 * ![](https://ps.w.org/woo-cart-abandonment-recovery/assets/icon-256x256.gif?rev
   =3370405)
 * [Cart Abandonment Recovery for WooCommerce – Recover Lost Sales with Automated Emails](https://wordpress.org/plugins/woo-cart-abandonment-recovery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-cart-abandonment-recovery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-cart-abandonment-recovery/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-cart-abandonment-recovery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-cart-abandonment-recovery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-cart-abandonment-recovery/reviews/)

## Tags

 * [on-hold](https://wordpress.org/support/topic-tag/on-hold/)
 * [order status](https://wordpress.org/support/topic-tag/order-status/)

 * 6 replies
 * 2 participants
 * Last reply from: [CartFlows Team](https://wordpress.org/support/users/cartflows/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/hardcoded-order-statuses/#post-12368661)
 * Status: resolved