Skip to content

Create custom product options with image display on hydrogen #951

Answered by juanpprieto
LuLue7775 asked this question in Help
Discussion options

You must be logged in to vote

Hi @LuLue7775

To attach custom data to product variants you could create and link up metafields to the Product Variant. My recommendation is to create a metafield which references a metaobject. The metaobject could then contain all the extra fields you want for a given variant.

Here are some screens to get you there:



You could then query the metafield and the metaobject refernce when querying each variant (or Product).

Here is some basic example queries for metaobjects to get you started.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@LuLue7775
Comment options

@LuLue7775
Comment options

@LuLue7775
Comment options

@juanpprieto
Comment options

Answer selected by blittle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants