A space to discuss online store customization, theme development, and Liquid templating.
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?
Solved! Go to the solution
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.
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.
Thank you. Was able to achieve with JS.