Hardcoded order statuses
-
There is another thread (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 to see the link]
- The topic ‘Hardcoded order statuses’ is closed to new replies.