Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. function woocommerce_get_order_item_totals_method($total_rows, $order, $tax_display){
  2. $total_rows['cart_subtotal']['label'] = 'Total Course cost:';
  3. if ( $order->get_total_discount() > 0 ) {
  4. $total_rows['discount']['label'] = 'Remaining Balance:';
  5. }
  6. if ( $order->get_shipping_total() ) {
  7. $total_rows['shipping']['label'] = 'Shipping Total:';
  8. }
  9. return $total_rows;
  10. }
  11. add_filter('woocommerce_get_order_item_totals', 'woocommerce_get_order_item_totals_method', 10, 3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement