1
0
Fork 0
mirror of synced 2025-04-06 07:13:33 +03:00

fix icml generation

This commit is contained in:
iyzoer 2017-07-28 15:59:06 +03:00
parent acd9a21ecb
commit 32978ff44f

View file

@ -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());