Changeset 3393651
- Timestamp:
- 11/11/2025 12:36:47 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
magic-export-import/tags/1.1.6/includes/plugin-adapters/class-magic-ex-im-adapter-woocommerce.php
r3393511 r3393651 95 95 $post_types_to_exlude = array( 'product_variation', 'shop_order_refund' ); 96 96 97 // Exclude shop order if new storing feature within custom tables is enabled.97 // Exclude shop order if new storing feature within custom tables (HPOS) is enabled. 98 98 if ( wc_string_to_bool( get_option( self::CUSTOM_TABLES_FEATURE_KEY ) ) ) { 99 99 $post_types_to_exlude[] = 'shop_order'; … … 121 121 122 122 case 'posts:product': 123 $mandatory_keys[] = 'product_type'; 124 break; 123 if ( magic_ex_im_is_export() ) { 124 $mandatory_keys[] = 'product_type'; 125 } 125 126 } 126 127 … … 527 528 if ( 'posts:product' === magic_ex_im_get_magic() ) { 528 529 530 $post_type_key = magic_ex_im_build_key( 'post_type', 'post' ); 531 $post_type = $item_data[ $post_type_key ] ?? ''; 532 533 if ( 'product_variation' === $post_type ) { 534 return $errors; 535 } 536 529 537 $product_type_key = magic_ex_im_build_key( 'product_type', 'taxonomy' ); 530 538 $product_type = $item_data[ $product_type_key ] ?? '';
Note: See TracChangeset
for help on using the changeset viewer.