• Resolved alijens

    (@alijens)


    When I receive and order it is immediately set to Processing and not to Pending.
    At the Processing state there is a message displayed that the invoice has been paid
    “Betalning via Faktura. Betalad 3 februari, 2022 kl. 15:09. Kundens IP: 37.3.17.40”
    but the invoice has not been paid. This seems like an error to me. Is the invoice considered to be paid once the order is set to Processing status?
    Is it possible to have the order set to Pending once it has arrived and not immediately set to Processing?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Fauzan Azizie

    (@fauzanade)

    Hi @alijens,

    If you want to change the default order status made via invoice gateway, you can use the following snippet:

    add_filter(‘igfw_invoice_gateway_process_payment_order_status’, ‘change_invoice_payment_order_status’ );
    function change_invoice_payment_order_status( $order_status, ) {
        return ‘pending-payment’;
    }

    Please kindly add it to your child theme’s function.php

    Cheers,

    Thread Starter alijens

    (@alijens)

    I have added
    add_filter(‘igfw_invoice_gateway_process_payment_order_status’, ‘change_invoice_payment_order_status’ );
    function change_invoice_payment_order_status( $order_status ) {
    return ‘pending-payment’;
    }
    but I get
    Fatal error: Uncaught Error: Undefined constant “‘igfw_invoice_gateway_process_payment_order_status’”

    I also get an error:

    `syntax error, unexpected ‘)’, expecting variable (T_VARIABLE)

    Turns out it was the extra comma next to the variable. Fixed it.

    • This reply was modified 4 years, 3 months ago by almostsultry.
    Thread Starter alijens

    (@alijens)

    This still does not work

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problem with invoice’ is closed to new replies.