Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    When a variable product is deleted, it also deletes variations. If the product is trashed it has not bee fully deleted yet.

    Thread Starter nerijunior

    (@nerijunior)

    @mike That’s the problem. If I delete “completely” the product, some data stay at database.

    I’m doing consuming the WOO API, and when I remove the product from the trash and try to create the product again, some errors occurs and using this plugin everything runs fine.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Are you deleting via admin or api?

    Thread Starter nerijunior

    (@nerijunior)

    Admin

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Right, so you need to delete after trash or it won’t clear them out.

    Thread Starter nerijunior

    (@nerijunior)

    It’s exactly what I’m doing:

    1. API: I create the product – Everything is ok
    2. ADMIN: I sent the created product to the trash
    3. ADMIN: I go to the trash and remove completely
    4. API: I try to create the product again and I receive SKU error or the variations of the product doesn’t appear without any error.
    Plugin Contributor Mike Jolley

    (@mikejolley)

    Maybe when you create via API, you’re not associating the products properly? Create it via admin too – see if that acts differently.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘SKU Error after deleting variable product’ is closed to new replies.