|
@@ 1050-1053 (lines=4) @@
|
| 1047 |
|
$item->set_order_id( $this->get_id() ? $this->get_id() : $this->save() ); |
| 1048 |
|
$item->save(); |
| 1049 |
|
|
| 1050 |
|
if ( has_action( 'woocommerce_order_add_product' ) ) { |
| 1051 |
|
_deprecated_function( 'Action: woocommerce_order_add_product', '2.7', 'Use woocommerce_new_order_item action instead.' ); |
| 1052 |
|
do_action( 'woocommerce_order_add_product', $this->get_id(), $item->get_id(), $product, $qty, $args ); |
| 1053 |
|
} |
| 1054 |
|
|
| 1055 |
|
return $item->get_id(); |
| 1056 |
|
} |
|
@@ 1151-1154 (lines=4) @@
|
| 1148 |
|
$item->set_order_id( $this->get_id() ? $this->get_id() : $this->save() ); |
| 1149 |
|
$item->save(); |
| 1150 |
|
|
| 1151 |
|
if ( has_action( 'woocommerce_order_add_shipping' ) ) { |
| 1152 |
|
_deprecated_function( 'Action: woocommerce_order_add_shipping', '2.7', 'Use woocommerce_new_order_item action instead.' ); |
| 1153 |
|
do_action( 'woocommerce_order_add_shipping', $this->get_id(), $item->get_id(), $shipping_rate ); |
| 1154 |
|
} |
| 1155 |
|
|
| 1156 |
|
return $item->get_id(); |
| 1157 |
|
} |
|
@@ 1179-1182 (lines=4) @@
|
| 1176 |
|
$item->set_order_id( $this->get_id() ? $this->get_id() : $this->save() ); |
| 1177 |
|
$item->save(); |
| 1178 |
|
|
| 1179 |
|
if ( has_action( 'woocommerce_order_add_fee' ) ) { |
| 1180 |
|
_deprecated_function( 'Action: woocommerce_order_add_fee', '2.7', 'Use woocommerce_new_order_item action instead.' ); |
| 1181 |
|
do_action( 'woocommerce_order_add_fee', $this->get_id(), $item->get_id(), $fee ); |
| 1182 |
|
} |
| 1183 |
|
|
| 1184 |
|
return $item->get_id(); |
| 1185 |
|
} |