Liquid, JavaScript, themes, sales channels
I'm trying to use {{ product_type | url_for_type }} inside a <option value=""> but it returns a link <a href=""> tag.
is there a way to extract the URL from the href="" and return it inside the <option value=""> ?!
I've tried with strip_html but it doesn't work
{{ product_type | url_for_type }}
// Returns: <a href="/collections/all/video+night" title="video">video</a>
{{ product_type | url_for_type | strip_html }}
// Returns: "video" not what's inside href=""
Hi @crusco, have you tried using:
{{ product.url}}
Hi @crusco,
Can you please share your store URL and take a screenshot of error? So I will check and provide a solution here.
Greetings!
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024