|
@@ 786-790 (lines=5) @@
|
| 783 |
|
} |
| 784 |
|
|
| 785 |
|
// Allow plugins to add order item meta |
| 786 |
|
if ( version_compare( WC_VERSION, '3.0', '<' ) ) { |
| 787 |
|
do_action( 'woocommerce_add_order_item_meta', $item_id, $values, $cart_item_key ); |
| 788 |
|
} else { |
| 789 |
|
do_action( 'woocommerce_new_order_item', $item_id, wc_get_product( $item_id ), $order->get_id() ); |
| 790 |
|
} |
| 791 |
|
} |
| 792 |
|
|
| 793 |
|
// Store fees |
|
@@ 818-822 (lines=5) @@
|
| 815 |
|
} |
| 816 |
|
|
| 817 |
|
// Allow plugins to add order item meta to fees |
| 818 |
|
if ( version_compare( WC_VERSION, '3.0', '<' ) ) { |
| 819 |
|
do_action( 'woocommerce_add_order_fee_meta', $order_id, $item_id, $fee, $fee_key ); |
| 820 |
|
} else { |
| 821 |
|
do_action( 'woocommerce_new_order_item', $item_id, $fee, $order->get_id() ); |
| 822 |
|
} |
| 823 |
|
} |
| 824 |
|
|
| 825 |
|
// Store tax rows |