• Resolved truetext

    (@truetext)


    I do lot adaption to invoice.php in dependence from orderstatus, which I call with:

    <?php $orderstatus = wc_get_order_status_name($this->order->get_status()); ?>

    Until last update everything was fine, and when I click on Button “Order complete” status change to Order complete and in my invoice pdf correct status is shown.

    Now after update, when I click on “Order complete” woocommerce change the status correctly, but pdf from invoice.php (which was send as email attachment) still show “order processing”

    How can I get the correct orderstatus in invoice pdf, send when click “Order complete”?

    thanks!!

    Gruß
    Seb

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter truetext

    (@truetext)

    (I work with pro version)

    Plugin Contributor Ewout

    (@pomegranate)

    Our plugin simply reads the order status from the order. If this has changed it must be due to a change in WooCommerce itself in when the email is sent. As far as I know, the email “Completed order” is normally sent out AFTER the order status. Or is this another email?

    If you have any questions specific to the Pro version, please send us an email at [email protected], ww.wp.xz.cn does not allow us to use these forums for supporting our paid extensions.

    Thread Starter truetext

    (@truetext)

    no its the normal email send when order change to complete
    thanks!! :-/

    Plugin Contributor Ewout

    (@pomegranate)

    Are you using any caching plugins on the site?

    I tested this on my own site and I can’t reproduce the error, if I do

    
    <?php echo wc_get_order_status_name( $this->order->get_status() ); ?>
    

    It shows: “Completed” in the Invoice attachment sent with the “Completed order” email.

    • This reply was modified 7 years, 2 months ago by Ewout. Reason: tested
    Thread Starter truetext

    (@truetext)

    ooohhh thank you!!! I found it out!:

    there was an Plugin active that cause the problem.
    it was: PayPal Express Checkout Payment Gateway for WooCommerce ( Basic )

    I dont need it. After deactivation erverytihng is ok! :-)))))))))))))))))))))

    thank you
    have a nice day
    🙂

    Plugin Contributor Ewout

    (@pomegranate)

    Glad to hear you found the culprit! 🙂

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

The topic ‘orderstatus order complete’ is closed to new replies.