fix icml generation
This commit is contained in:
parent
acd9a21ecb
commit
32978ff44f
1 changed files with 1 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue