• The submenu shows up, so there’s that. But it doesn’t save any order statuses. It says it does, but no order status show up in the repository table, and it doesn’t show up in the orders.

    Apparently WooCommerce 2.2 completely changed the way order statuses are saved. They are no longer a taxonomy, but a post status. That’s why this plugin doesn’t work.

    Will have to find another way to do this. Since this is on WooTheme’s official site, it would be great if they updated this!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ayac2002

    (@ayac2002)

    The solution is here: https://gist.github.com/claudiosmweb/e68e891d593c4c989d9d

    Copy/paste it into your theme’s functions.php file and replace “Status Name” with your custom status name. ??

    HI,

    how about if I will add multiple statuses? sorry not really good in codes.

    thanks in advance

    Thread Starter ayac2002

    (@ayac2002)

    Since the plugin doesn’t work at all, you’ll have to modify your functions.php file. Make sure you have access to that!

    This has a good explanation and workaround as well for WooCommerce 2.2+: https://www.sellwithwp.com/woocommerce-custom-order-status-2/

    I added two custom order statuses. Just copy this section and change the names:

    register_post_status( 'wc-awaiting-shipment', array(
            'label'                     => 'Awaiting shipment',
            'public'                    => true,
            'exclude_from_search'       => false,
            'show_in_admin_all_list'    => true,
            'show_in_admin_status_list' => true,
            'label_count'               => _n_noop( 'Awaiting shipment <span class="count">(%s)</span>', 'Awaiting shipment <span class="count">(%s)</span>' )
        ) );

    Then copy line 26 and change the names:

    $new_order_statuses['wc-awaiting-shipment'] = 'Awaiting shipment';

    To properly register the custom order statuses, I had to change the affected orders to a default status (on-hold is a good one), move over my functions.php file, deactivate all of my plugins, then reactivate them. THEN save the affected orders accordingly.

    I would experience the WooCommerce infinite loop bug when saving the new order statuses if I didn’t do that, then my orders disappeared in the front-end. It’s mentioned in the comments, haha.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Does not work in WordPress 4.0 and Woo 2.2’ is closed to new replies.