Liquid, JavaScript, themes, sales channels
Hello, Shopify!
I need to add a 2nd line to every single product in my shop (collection) page. I know I can use metafields to achieve it but I don't understand 100% how. See screenshot of what I'm trying to achieve.
I tried editing product-template.liquid but it only results in changes in Product Page. In this case, my shop (or collection) page has to display the content of metafields.
Thank you so much!
Solved! Go to the solution
This is an accepted solution.
Never mind, figured it out.
If anybody needs a solution later:
1) Install Metafields Guru app.
2) Go to Online Store - Actions - Edit Code - product-card-grid.liquid
3) Add the following snippet just about anywhere you want - {{ product.metafields.custom_design.product_subtitle }}
4) Now go the product for which you want to add a subtitle.
5) Create a metafield and use the following for Key and Namespace - product_subtitle, custom_design. Leave it at String.
6) In the field, write whatever subtitle you want and voila.
Just keep in mind that your theme might be a bit different. For me, the key was finding that Liquid file with the snippet.
Hope it helps!
This is an accepted solution.
Never mind, figured it out.
If anybody needs a solution later:
1) Install Metafields Guru app.
2) Go to Online Store - Actions - Edit Code - product-card-grid.liquid
3) Add the following snippet just about anywhere you want - {{ product.metafields.custom_design.product_subtitle }}
4) Now go the product for which you want to add a subtitle.
5) Create a metafield and use the following for Key and Namespace - product_subtitle, custom_design. Leave it at String.
6) In the field, write whatever subtitle you want and voila.
Just keep in mind that your theme might be a bit different. For me, the key was finding that Liquid file with the snippet.
Hope it helps!
Hey! Glad to help.
This may be useful.
https://app.hopps.io/videos/how-do-i-add-a-subtitle-to-my-product-grid-178a8fa3745
Happy Day!😀
Does anyone have an updated solution to this using the Shopify 2.0 features?
Thanks!!
I second this question!
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