• Resolved cosmoweb

    (@cosmoweb)


    Hi,

    in customer order there was “Cancelled” option, now I don’t see more.

    I didn’t upgrade WC or plugins.

    Someone can help me? Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Yuki K a11n.

    (@yukikatayama)

    Automattic Happiness Engineer

    Hi @cosmoweb,

    > in customer order there was “Cancelled” option, now I don’t see more.

    Let’s make sure this is not a theme or plugin conflict with WooCommerce.

    First, backing up your live site before any testing and updates is highly recommended. If you would prefer not to do testing on your live site, first make a back up of your site, then create a staging site using this plugin WP Staging. This creates a copy of your live site where you can make tests without affecting your live site.

    Temporarily switch your theme to one of our default – Storefront or Twenty Nineteen, then deactivate all plugins except for one – WooCommerce. If it shows correctly, then it’s a theme or plugin conflict. Reactivating each plugin one at a time, then see if the issue pops up again will tell us which plugin is conflicting.

    Thread Starter cosmoweb

    (@cosmoweb)

    Hi @yukikatayama thanks for reply.

    I solved with this snippet code:

    //MODIFICA NOME STATO ANNULLATO A CANCELLATO
    add_filter( 'wc_order_statuses', 'wc_renaming_order_status' );
    function wc_renaming_order_status( $order_statuses ) {
        foreach ( $order_statuses as $key => $status ) {
            if ( 'wc-cancelled' === $key ) 
                $order_statuses['wc-cancelled'] = _x( 'Cancellato', 'Order status', 'woocommerce' );
        }
        return $order_statuses;
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘cancelled option in customer order’ is closed to new replies.