Log in
Log into community
Welcome to the Liquify Community
New post
View all posts
Related posts
Did this answer your question?
๐
๐
๐
Powered by
Hall
Inactive
Updated 2 months ago
0
Follow
Show Selected Variant Option Name
Show Selected Variant Option Name
Inactive
0
Follow
c
consti
2 months ago
ยท
What attribute do I need to set the currently selected option? Like Color: White?
Attachment
j
c
4 comments
Share
Open in Discord
j
jonas.halbstark
2 months ago
Hi @consti, here is a good example:
https://bandwerk.de/products/vintage-band
j
jonas.halbstark
2 months ago
x-text="selected_or_first_available_variant.options[optionKey]"
j
jonas.halbstark
2 months ago
so we display the option of the selected variants and then only the one which fits to that indey.. optionKey outputs a number.. like the index
c
consti
2 months ago
Perfekt, danke
Add a reply
Sign up and join the conversation on Discord
Join on Discord