mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 12:07:15 +01:00
woocommerce bugfix import order with product variation
This commit is contained in:
parent
0b807455ca
commit
6d13973c06
@ -388,7 +388,7 @@ class Shopimporter_Woocommerce extends ShopimporterBase
|
||||
|
||||
// The item could be a variable product in which case we have to retrieve the sku of the variation product
|
||||
if (!empty($wcOrderItem->variation_id)) {
|
||||
$variation_product_sku = $this->getSKUByShopId($wcOrderItem->id,$wcOrderItem->variation_id);
|
||||
$variation_product_sku = $this->getSKUByShopId($wcOrderItem->product_id,$wcOrderItem->variation_id);
|
||||
if (!empty($variation_product_sku)) {
|
||||
$orderItem['articleid'] = $variation_product_sku;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user