• Resolved eiqie

    (@eiqie)


    Hello, I’m trying to update an existing product that doesn’t have a parent SKU, I’m adding SKU to variations but i keep receiving “invalid or duplicated sku” error when i press update or save changes!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You can use this filter in a code snippet to stop the unique SKU check from happening.

    add_filter( 'wc_product_has_unique_sku', '__return_false' );

    Plugin Support RK a11n

    (@riaanknoetze)

    Just to make sure – are there *other* products using the SKU? As in, other products (variable or otherwise) than the one you’re adding variations to.

    Thread Starter eiqie

    (@eiqie)

    no im sure there is no other using same SKU code i’ve checked from database!

    if its so where to add “add_filter( ‘wc_product_has_unique_sku’, ‘__return_false’ );” this code exactly?!

    Thread Starter eiqie

    (@eiqie)

    any new suggestion?! @riaanknoetze

    Thread Starter eiqie

    (@eiqie)

    please note that i was able only to solve this problem by removing all SKU and drafted products from database.

    now im able to use the SKU’s that was making problem.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘invalid or duplicated sku’ is closed to new replies.