Solved

Help! How can I recover deleted variants on one product

QINOU
Visitor
1 0 1

I deleted several variations of a product and when I manually added the variations back, the original orders were not linked to the new variations even though I added the same sku. Can it relink to the original order?

Accepted Solution (1)

SomeUsernameHe
Shopify Partner
455 49 83

This is an accepted solution.

Unfortunately, I do not think that can be done. They are most likely linked with what is called a GLOBAL ID. In this case, it would look like this:

gid://shopify/ProductVariant/123

The issue is when you delete a variation and create a new one, it deletes the GID and creates a new GID. That GID is what links the variation to the order. There is just no way to accomplish this task, unfortunately. For future reference, if you are concerned about this for a certain variation, I would just edit the variation and it will then keep the product linked to past orders. 

Have I helped? Consider putting coffee in my mouth!
Buy Me a Coffee

View solution in original post

Reply 1 (1)

SomeUsernameHe
Shopify Partner
455 49 83

This is an accepted solution.

Unfortunately, I do not think that can be done. They are most likely linked with what is called a GLOBAL ID. In this case, it would look like this:

gid://shopify/ProductVariant/123

The issue is when you delete a variation and create a new one, it deletes the GID and creates a new GID. That GID is what links the variation to the order. There is just no way to accomplish this task, unfortunately. For future reference, if you are concerned about this for a certain variation, I would just edit the variation and it will then keep the product linked to past orders. 

Have I helped? Consider putting coffee in my mouth!
Buy Me a Coffee