From 32978ff44f14b46e05f6f4232251623cb1d3301e Mon Sep 17 00:00:00 2001 From: iyzoer Date: Fri, 28 Jul 2017 15:59:06 +0300 Subject: [PATCH] fix icml generation --- retailcrm/include/class-wc-retailcrm-icml.php | 1 + 1 file changed, 1 insertion(+) diff --git a/retailcrm/include/class-wc-retailcrm-icml.php b/retailcrm/include/class-wc-retailcrm-icml.php index 7624b52..67b22dc 100644 --- a/retailcrm/include/class-wc-retailcrm-icml.php +++ b/retailcrm/include/class-wc-retailcrm-icml.php @@ -330,6 +330,7 @@ if ( ! class_exists( 'WC_Retailcrm_Icml' ) ) : $product = wc_get_product($theid); } elseif (get_post_type($theid) == 'product_variation') { + $post = get_post($theid); if (get_post($post->post_parent)) { $product = wc_get_product($theid); $parent = wc_get_product($product->get_parent_id());