|
@@ 815-819 (lines=5) @@
|
| 812 |
|
} |
| 813 |
|
|
| 814 |
|
// Allow plugins to add order item meta |
| 815 |
|
if ( version_compare( WC_VERSION, '3.0', '<' ) ) { |
| 816 |
|
do_action( 'woocommerce_add_order_item_meta', $item_id, $values, $cart_item_key ); |
| 817 |
|
} else { |
| 818 |
|
do_action( 'woocommerce_new_order_item', $item_id, wc_get_product( $item_id ), $order->get_id() ); |
| 819 |
|
} |
| 820 |
|
} |
| 821 |
|
|
| 822 |
|
// Store fees |
|
@@ 847-851 (lines=5) @@
|
| 844 |
|
} |
| 845 |
|
|
| 846 |
|
// Allow plugins to add order item meta to fees |
| 847 |
|
if ( version_compare( WC_VERSION, '3.0', '<' ) ) { |
| 848 |
|
do_action( 'woocommerce_add_order_fee_meta', $order_id, $item_id, $fee, $fee_key ); |
| 849 |
|
} else { |
| 850 |
|
do_action( 'woocommerce_new_order_item', $item_id, $fee, $order->get_id() ); |
| 851 |
|
} |
| 852 |
|
} |
| 853 |
|
|
| 854 |
|
// Store tax rows |