Using Woocommerce: 2.0.12
I am having an instance where some orders for the same variation through eBay will come through to WooCommerce, but the _variation_id is not set. Sometimes it does, sometimes it doesn’t and these are for the exact same product/variation.
I’ve been digging through the source code and can’t quite work this out:
In OrderWrapper_woo.php, line 166 sets:
$item_variation = '';
Line 229 sets:
$item['variation_id'] = isset( $item_variation ) ? $item_variation : '';
I can’t see anywhere, where the variation ID is set. Am I looking at this wrong? Why would some items come through with the _variation_id set in the wp_woocommerce_order_itemmeta but other won’t? If I look in the json encoded details column in wp_ebay_transactions for both orders (the one with the variation set and the one without), they both have the correct SKU code set.
- The topic ‘Item Variations for Woo not coming through’ is closed to new replies.