• Gazow

    (@gazow)


    So i have a shop with currently 1500 items, all of my SKUs appear to have been deleted.

    Fortunately i am using Featured image from URL (FIFU) where the url contains the SKU

    is there a way to process all products and set SKU = featured image from php?
    also if there would be a way to make it automaccaly set new skus from the featured image url when publishing that would be great too

    thanks

    https://www.ads-software.com/plugins/woocommerce/

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

    (@mikejolley)

    WC cannot delete SKUs itself – you should find out what did it before you re-set them. SKUs are stored in the wp_postmeta table with meta_key ‘_sku’.

    Check the database directly.

    You’d need some kind of loop over all attachments to set SKUs again, but this isn’t straightforward and no existing solution exists.

Viewing 1 replies (of 1 total)
  • The topic ‘ALL of my SKU's got deleted… is it possible to set SKU = another variable’ is closed to new replies.