Displaying metafield product info on new .json template

Hi all. I am building an online bookstore using Venture theme. I wanted to display additional info on the product page (author, publisher etc). I realised I’d need to change the .liquid template to a .json one and have successfully done so. I find I can now add sections to that page using theme editor. All well and good but I am unable to add a “single line text” field in order to display this info. I built a similar store a few months ago using Dawn theme. That same page has a “Product Information” section to which the single lines can be added. My new json template does not have this, rather it has a “Product Pages” section. I can add other sections such as “gallery” but not single line text. I guess I need to add this “Product Information” section but cannot find how to do this. Yes, I could use Dawn but Venture has the multi-line menu that I really need. Any help much appreciated.

Hi @Michael362 ,

Each theme will support different blocks, so you won’t be able to find a block of this theme in another theme.

So if you want to add a “single line text” field, you need to add the block directly at Venture theme. And I checked, Venture theme doesn’t support product blocks, so the best way I recommend you to add text directly in the code.

Go to sections > product-template.liquid file, you can add the code directly in this file, it will display fine. If you want different customization for products, you can use Metafield instead of add text static.

Hope it helps!

1 Like

Hi, and many thanks for the reply. I think I will however go back to using the Dawn theme as it seems to be already tailored to my needs (almost). I just wish the Dawn theme had a multi-layered menu. I’m only a beginner so have a lot to learn (and this has been a good example). Cheers.

Hello @Michael362 ,

For metafields you can use one free app https://apps.shopify.com/advanced-custom-field .By using this app you can add app provided code anywhere inside product file.

See videos for how you can use custom metafields:
https://www.awesomescreenshot.com/video/6656624?key=94dedb87ebc00d7a42ab8fecf6cfab8b

https://www.awesomescreenshot.com/video/6656587?key=bcadd39322c6ffd8cb856a31d5ae141c

Hi @Michael362 ,

multi-layered menu: I think Dawn can accommodate this, can you explain more about it.

If it helped you solve your issue, please mark it as a solution. Thank you and good luck.