includes/cli/class-wc-cli-order.php 1 location
|
@@ 927-931 (lines=5) @@
|
| 924 |
|
} |
| 925 |
|
} |
| 926 |
|
|
| 927 |
|
if ( isset( $item['product_id'] ) ) { |
| 928 |
|
$product_id = $item['product_id']; |
| 929 |
|
} elseif ( isset( $item['sku'] ) ) { |
| 930 |
|
$product_id = wc_get_product_id_by_sku( $item['sku'] ); |
| 931 |
|
} |
| 932 |
|
|
| 933 |
|
// variations must each have a key & value |
| 934 |
|
$variation_id = 0; |
includes/api/class-wc-api-orders.php 1 location
|
@@ 922-926 (lines=5) @@
|
| 919 |
|
} |
| 920 |
|
} |
| 921 |
|
|
| 922 |
|
if ( isset( $item['product_id'] ) ) { |
| 923 |
|
$product_id = $item['product_id']; |
| 924 |
|
} elseif ( isset( $item['sku'] ) ) { |
| 925 |
|
$product_id = wc_get_product_id_by_sku( $item['sku'] ); |
| 926 |
|
} |
| 927 |
|
|
| 928 |
|
// variations must each have a key & value |
| 929 |
|
$variation_id = 0; |