How can I display metafields above product prices on a Dawn 2.0 theme?

Hey everyone, I’m currently trying to get a meta field that I have set up to show above the price of each product on the main page and on the collection pages, I am running the Dawn 2.0 theme, any way someone can run me down what code to use and where to put it to make this work?

Ive attached a picture for reference, thanks in advance guys!

Place it between the price of your product and the title.

{{product.metafileds.xxx.xxx.value}}

Remember to add a [.value] after you introduce the meta field

Thank you for your reply, are you able to point me to what section and what line of code I add it to? Thanks again for your help.

Haven’t you added this code before? Maybe you didn’t add the .value.

As I don’t know exactly how your template code is written, this is something you’ll have to find out for yourself. Usually it is a product-items.liquid.

Then find the price or title and define a div to put in between them and you’re done!

So if i were to insert the code it would be something like this: {{product.metafileds.custom.subtitle.value}}

And is the code supposed to be spelt “metafileds” or “metafields”?

Thanks again.

sorry!

use “metafields”

{{product.metafields.custom.subtitle.value}}

Are you able to show me where to exactly post the code? I can’t seem to find a place to find it, it is a Dawn 2.0 theme and i want it show on the main page as well as the collection pages that they are located in.

Snippets->card-product.liquid

try this

I still haven’t figured it out.

If it doesn’t show up yet, you can invite me as your shop co-author and I can help you see what the problem is.

How do i go about doing that, i appreciate the help.

I have private messaged you, if you need to invite me as your shop co-author, please let me know your shop name and what you need to do before you send the invite.