• Resolved easycomtech

    (@easycomtech)


    Hi,

    Is it possible to import products with 1 or more variation as variable and with no variation as simple.

    For now, I am importing all products as variable and I enable the option to set products with no variation as simple. But wpallimport creates both product with one or none variations as simple.

    Is it possible?

    Thank you.

Viewing 1 replies (of 1 total)
  • Thread Starter easycomtech

    (@easycomtech)

    Ok I just added and it worked.

    add_filter( ‘wp_all_import_minimum_number_of_variations’, wpai_wp_all_import_minimum_number_of_variations’, 10, 3 );

    function wpai_wp_all_import_minimum_number_of_variations( $min_number_of_variations, $pid, $import_id ) {

    return 1;

    }`

Viewing 1 replies (of 1 total)
  • The topic ‘Import variable with one variation or none’ is closed to new replies.