All things Shopify and commerce
Hi,
in my liquid i am fetching the options/variants from a product with:
{{ product.options}}
That works and i will get the result for each option like this
GeräteJahre
But i want to have Geräte / Jahre
So i was trying to do this
{{ product.options | split: ' ' | handle | replace: "-", " / "}}
but the result is
gerate / jahre (german ä as well missing)
How i can get it to Geräte / Jahre
Many thanks
I know and understand that you can not promote your App or Services in here, but i would really appreciate some help. Many thanks.
I doubt many people are paid to help here.
You can't expect people to sit and monitor these forums 42/7 for free, can you?
Now to your question -- product.options is already an array, so splitting it will do nothing good.
I also see no reason to use handle since what it does among other things is down-case, replace non-ascii characters with best ascii matches and replace spaces, etc with dashes.
You'd only need to do {{ product.options | join: " / " }} to get what you want.
Hope this helps.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025