WooCommerce Custom Statii Conflicts




Screencasts – WP Theme Tutorial show

Summary: With the launch my book called "Don’t be an Idiot: Learn to run a viable business I had to install WooCommerce to run the sales process. With that came an issue, virtual digital orders were not getting marked as completed automatically. I found a few resources and a plugin that claimed to fix this, but I wasn’t having any luck. When I started to dig in to the issue I found that WooCommerce stores it’s order statii as tags. Then by taking a look at the tags I saw that the WooCommerce ‘Pending’ tag was actually reading as ‘pending–2’. It was added as ‘pending–2’ because there was already a tag on my site that was using the ‘pending’ slug. In my case it was Edit Flow (though a tag on a post or in any other plugin would get the same result) which also stores it’s custom statii as a taxonomy. To fix the issue, remove the offending taxonomy term that took the ‘pending’ slug. Then remove the tag from WooCommerce and add ‘Pending’ back in. You can find the WooCommerc tags at: http://yoursite.com/wp-admin/edit-tags.php?taxonomy=shop_order_status&post_type=product That’s it, remove the tag conflict and WooCommerce should be working again with no issues. You can follow a bug report on Github on ticket 3064. Screencast https://www.youtube.com/watch?v=ksY8TyLg9uI