Anybody doing or done the migration of having to link products via metafields to Shopifys new 2048 variants. If so whats your approach?
FInd doing it via productVariantsBulkCreate very long winded and tideaous, with erros popping up a lot with certain situations.
Hey @Tom_Hooker - are you still running into issues with this, or did you figure it out?
If you’re still stuck, can you share a bit more detail so we can point you in the right direction? Specifically:
-
What specific errors are you getting from productVariantsBulkCreate? The actual error messages would help narrow down what’s going wrong.
-
When you say “linking products via metafields” - are you using metafield-linked product options (where options reference metaobjects), or are you storing variant relationships in custom metafields, or something else?
-
What are the “certain situations” where errors pop up? Like, is it specific variant combinations, large batches, or something about the product structure?
There are a few different patterns for handling products with lots of variants - standard 2048 variants with productVariantsBulkCreate, metafield-linked options, or combined listings (Plus only). Depending on your use case and what errors you’re hitting, one approach might work better than another. Also worth considering productSet if you’re syncing from an external source - it can handle the whole product+variants+options in one shot.
Drop some error messages and code samples if you’ve got them - makes it way easier to troubleshoot the specific issues you’re hitting.