Solved

How can one get variant metafields show up in the collapsible tabs?

TheThisThat
Shopify Partner
61 3 17

Trying to have the content that shows up in the collapsible tab switch by variant. Example, my fabric content changes with each variant and I'd like that to switch. 

Any help much appreciated as it wouldn't let me pull it in by variant, only by product. Is there a way to do that with some custom liquid?

a little of this and a little of that
Accepted Solution (1)

MetafieldsGuru
Shopify Partner
158 32 96

This is an accepted solution.

Sadly, it's not possible to render the data dynamically with Liquid. You may want to add some JavaScript on top of that Liquid code and it should do the thing. Here is the link to a similar thread.

Once you get the variant data displayed, you can create a custom accordion to wrap that code.

Check out Metafields Guru, the #1 ranked metafields app.

Bulk editor | Data import/export | Metafield sets | Browser extension

View solution in original post

Replies 2 (2)

MetafieldsGuru
Shopify Partner
158 32 96

This is an accepted solution.

Sadly, it's not possible to render the data dynamically with Liquid. You may want to add some JavaScript on top of that Liquid code and it should do the thing. Here is the link to a similar thread.

Once you get the variant data displayed, you can create a custom accordion to wrap that code.

Check out Metafields Guru, the #1 ranked metafields app.

Bulk editor | Data import/export | Metafield sets | Browser extension
TheThisThat
Shopify Partner
61 3 17

Thank you. Was able to achieve with JS.

a little of this and a little of that