Viewing 1 replies (of 1 total)
  • Plugin Author rainafarai

    (@rainafarai)

    HOOKS IN WOO ORDER NOTIFICATION:

    since 2.5 we introduced 3 HOOKS so you can add things in message without changing the plug code

    in yuor acrive theme in function.php add some code and return all you need from the $order = wc_get_order( $order_id ); maybe the field is this array !!

    try something like this adding the code in function.php

    <?php function nftb_order_after_items($order_id){
        $order = wc_get_order( $order_id );
            
    
    // Get Order Payment Details
    $order->get_payment_method();
    $order->get_payment_method_title();
    $order->get_transaction_id();
    
            return "payment_method: ".$order->get_payment_method(); 
        } ?php>

    HOPE CAN HELP !!

Viewing 1 replies (of 1 total)
  • The topic ‘Add other notification’ is closed to new replies.