Support » Plugin: Kadence WooCommerce Email Designer » Order status placeholder missing

  • mykilos

    (@mykilos)


    Dear team,

    We had a case recently when a customer placed an order with a payment which was pending for completion. In the meanwhile we have received an email notification and processed to order as usual.

    Since we work with a 3rd party system to process orders delivered from Woo-commerce, we cannot determine whether a payment was completed or still pending. We neither see it on the 3rd party system.

    How could we implement an order status placeholder on the new order notification?

    Thanks

    Tal

Viewing 1 replies (of 1 total)
  • Plugin Author Ben Ritner – Kadence WP

    (@britner)

    Hey,
    You can add a {order_status} placeholder, by adding this code into a child theme or code snippets plugin:

    add_filter( 'kadence_woomail_order_body_text', 'custom_function_for_order_status_in_email', 10, 2 );
    function custom_function_for_order_status_in_email( $text, $order ) {
    if ( is_a( $order, 'WC_Order' ) ) {
    $text = str_replace( '{order_status}',  $order->get_status(), $text );
    }
    return $text;
    }

    I hope that helps!

    Ben

Viewing 1 replies (of 1 total)
  • The topic ‘Order status placeholder missing’ is closed to new replies.