Good afternoon everyone,
I am struggling to find a tuto that shows how to add different description per variant with Horizon theme.
It exists a lot of tuto with Drawn theme but I found nothing with Horizon theme.
Is anyone can help to édit the code?
Ps: i have already created and filled it the variant metafield.
Thank you very much
Go to settings —–> custom data/metafields and metaobjects —–> variant metafields. Create a metafield,save that’s the backend done.
Now go to product admin in the backend and under each products go to each of the variants and add the content there. This is done populating the content.
Now for the frontend open customizer and under product template and product information section add a text block. On that block you will find a database kind of icon on top right, click on that and connect the metafield from the list of metafields that show up
Now on the frontend, each variant will have its own description and will be dynamic.
Best
Thanks for the reply but if didn’t work. I already tried it but it did find any metafield. The system only proposed me the metaobjects (while the variant metafield is well supposed to be visible from thé storefront).
In addition, i understand that i need to modify the code (product_description.liquid & productform.js) in order to have JavaScript updating immédiatly the variant text when I will select a variant.
Make sure the field you choose. When creating metafields if you choose a rich text field and then on the customizer you try to add a text field the metafield won’t show up. Try single line text and text block or rich text on both.
Perfect, thanks a lot all for your support.