So basically I’m trying to display Variant metafields in the collapsible row. I want each Collapsible row to display the pricing based on whichever variant is selected.
However, Collapsible row block by default doesn’t allow to use Variant metafields as a dynamic source (It allows Product, Brand and Page).
Can someone please guide me step by step on how to achieve this in Trade 15.0.0 theme?
Narrow the scope to a simple QUESTION, the forums are not meant for extensive training in theme development.
https://shopify.dev/docs/storefronts/themes/architecture/settings/dynamic-sources this is a current undocumented/unrecognized limitation of variants not being inferred for dynamic sources.
The alternatives are trying to paste liquid directly to replace the dynamic source {{product.variants.first.price}} etc but that may not work and or be static.
Mostly like need to customize the theme to have the suitable logic built in.
If you need this customization then contact me by my email for services.
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.
Hello @kissaten ,
Possible but not easy to provide a step wise instruction for it.
You need to go with a developer to achieve it.
If you need further help don’t hesitate to contact me.
You can find the email in the signature below.
Thanks
Hello @Guleria
Thank you very much for your effort. This has worked very well in the desktop version. However, the media isn’t visible anymore in the mobile version. What should I do to make it work on the mobile too?
Can you please share the URL ?
Hi @kissaten ,
It can be challenging to change collapsible content based on selected Shopify variants. As an alternative, you can use the Easify Product Options app. This app allows you to create custom content that can be displayed similarly to a collapsible row (though it’s not default Shopify collapsible row). The content will show based on the selected Shopify variant. Here’s an example
:
App setup - using Option Group & Paragraph option types, and Conditional logic feature:
I hope you give the app a try! If you need any help with the setup, please reach out to the Easify team for assistance.