Hey everyone.
I’ve got an interesting question regarding Product Variants and SKUs.
I have a use case where I need a 1:Many relationship between a Product Variant and a SKU; or, in other words, I need the ability for a Product Variant to be referenced to multiple, distinct SKUs.
The Shopify API does not have any functionality built in for this. The best use case that I’ve been able to think of so far is to use the API’s metafields. In particular, I was thinking that perhaps I could use a JSON string where I have an array of JSON objects that represents individual SKUs.
For instance, for a given Product Variant, I could have a metafield that looks something like:
[
{
“Special_SKU”: 13
},
{
“Special_SKU”: 14
},
]
Has anyone else come across a similar use case? If so, how did you implement it? Or were you not able to?
Thank you!