• Resolved srshadowy

    (@srshadowy)


    Apos o cliente finalizar a compra ele tem acesso aos links para baixar e mesmo assim, o status fica em “Processando” ao invez de “concluido”
    Devo fica mudando manualmente isso? tem como deixa automatico? pois n?o preciso entregar nada.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can add this code in your child theme’s function.php then All your problem will be solved
    /**
    * Auto Complete all WooCommerce orders.
    */
    add_action( ‘woocommerce_thankyou’, ‘custom_woocommerce_auto_complete_order’ );
    function custom_woocommerce_auto_complete_order( $order_id ) {
    if ( ! $order_id ) {
    return;
    }

    $order = wc_get_order( $order_id );
    if( ‘processing’== $order->get_status() ) {
    $order->update_status( ‘completed’ );
    }
    }

    Thread Starter srshadowy

    (@srshadowy)

    Analizando a situa??o. Obrigado por respoder e pelo caminho!!!

    @srshadowy Your most welcome let me know. If it works for you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Status de Processando para Conclúido para produtos virtuais’ is closed to new replies.