Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_order_total( $order_data, $order ) {
- $order_data['tax_amount'] = $order->get_total_tax();
- $order_data['coupon_discount'] = $order->get_total_discount();
- return $order_data;
- }
- add_filter( 'wpf_woocommerce_customer_data', 'get_order_total', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement