Display order-number and order-total in instrucion field of BACS (direct bank/wire transfer) Gateway woocomerce

I have managed to display the order number in the intruction text on the thankyoupage with help from this post.
Display order-number in instruction field of BACS (direct bank/wire transfer) Gateway woocomerce

How can i do the same for the order total price?

public function thankyou_page( $order_id ) {
if ( $this->instructions ) {
            echo wpautop( wptexturize( wp_kses_post( str_replace("{order_number}", $order_id, $this->instructions) ) ) );
        }
        $this->bank_details( $order_id );

}

Read more here: Display order-number and order-total in instrucion field of BACS (direct bank/wire transfer) Gateway woocomerce

Leave a Reply

Your email address will not be published. Required fields are marked *