• rasidrsd

    (@rasidrsd)


    Hey guys,

    how can I get the fee value of the order in my function.php?

    I want to use the fee value that is set by the admin in the order admin panel and then work with it in my functions.php.

    I would like to access it like:

    $order = new WC_Order($order_id);
    $myFee=($order->FEEVALUE);
    
    //Code, Calcs, etc.
    
    echo $myFee;

    Can you help me on this issue?

  • The topic ‘Get Fee Variable’ is closed to new replies.