• Resolved wrip

    (@wrip)


    I have a variable product with multiple variations. I have some custom code that compares variation ids… I’ve accidentally removed old variations. So when I recreated them, they obviously have a different variation id. Is there a way to change the variation id without causing any issues or retrieve the deleted variation?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Stef

    (@serafinnyc)

    I’d look at grabbing a backup of the db. Variation details will be in postmeta table.

    dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hi @wrip

    Stef is onto a solution there – you’ll need to retrieve a backup or manually edit the data in the database tables by replacing the variation ID as needed.

    Delicate work so I’d recommend doing this on a staging site first.

    I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the following places for more development-oriented questions:

    1. WooCommerce Slack Community: https://woocommerce.com/community-slack/
    2. Advanced WooCommerce group on Facebook: https://www.facebook.com/groups/advanced.woocommerce/

    Thanks,

    Plugin Support RK a11n

    (@riaanknoetze)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is there a way to change the variation id or retrieve deleted variations?’ is closed to new replies.