From 6d13973c067f2a67d1a9a1c15ac36b4ba81f15e5 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Sat, 14 Sep 2024 12:45:13 +0200 Subject: [PATCH] woocommerce bugfix import order with product variation --- www/pages/shopimporter_woocommerce.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/pages/shopimporter_woocommerce.php b/www/pages/shopimporter_woocommerce.php index f97e9896..2e1bda94 100644 --- a/www/pages/shopimporter_woocommerce.php +++ b/www/pages/shopimporter_woocommerce.php @@ -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; }