Create custom product options with image display on hydrogen #951
|
I now trying to add custom variants. Shopify backend provides very limited options (text only), but I need some variants with numers selection, images displays along with variants. What's the most elegant way doing this? |
Replies: 2 comments 4 replies
|
Are you using hydrogen or liquid? |
|
If you don't want to manually build a custom schema mapping pipeline or state management engine in React from scratch, you can let an established app handle the backend configuration logic while keeping your storefront entirely headless. You can implement a custom options engine by utilizing our app, Misk Variant & Product Options. Built to support modern API configurations and flexible schemas, Misk allows you to assign infinite visual color swatches, number layout parameters, image upload fields, and conditional rule arrays directly to your catalog. You can expose this structured configuration payload effortlessly to your Hydrogen frontend layouts, keeping your code exceptionally clean, blazing fast, and infinitely scalable! |




Hi @LuLue7775
To attach custom data to product variants you could create and link up
metafieldsto the Product Variant. My recommendation is to create a metafield which references ametaobject. 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
metafieldand themetaobjectrefernce when querying each variant (or Product).Here is some basic example queries for metaobjects to get you started.