Is variant_id in order.line_items going to be updated, if the variant is removed/updated?

Highlighted
New Member
1 0 0

Example:

Order A1 has an item of variant V1 of a product P1. If I remove V1 from P1, what happens to the variant_id in A1? Is it still valid? How about if I add back V2, which is essentially the same as V1, will the variant_id in A1 be updated?

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1040 139 165

Hey @ahtsan,

 

Were you able to test this?

 

Orders are like a snapshot, the line item won't be removed but you won't be able to look up the variant by its ID.

Adding back the variant won't update the order either.

0 Likes