I have content that I would like to include that is specific to a brand or range. The aim would be to able to have the content displayed on the product details page. Ideally the content would be non template specific so it could be included on any product and updated globally without having to edit each product. Does anyone know how to go about doing this?
**Hi @gruff **### You can use metafields to achieve that### ### If you are unable to implement the same then I’m happy to do this for you, let me know. I can implement the code changes so that this will work well for you.### ### Hopefully, it will help you. If yes then Please don’t forget to hit Like and Mark it as the solution!
@deepaksharma that sounds great. Just trying to get my head round how it would work. I did have a look through the metafields but couldn’t work out which one I use. Keen to learn and so have the following questions:
What metafield type do I use?
How do I display the metafield in the template?
Do I add the field into the global product.liquid template?
1: What type of content do you want to show( like what will be in that images, tabs, texts, paragraphs, table etc.)
2: Metafields work as an reference( when you create a metafield for product as a example it will create an extra field at the bottom of where we add product details)
like the picture below
3: You will be need a section if there is none to support your metafield.
I have quite experience with metafields and it helps alot, it’s like a magic for shopify store owners who want to show multiple details and keeping all details unique to each and every product.
and add a schema setting for this and then you can add a block from the theme customization and select the product you need to display the image, title, price, description, variants and every option available in the product for the selected product.
NOTE: THE CODE ABOVE IS JUST PROTOTYPE FOR EXAMPLE NOT ACTUAL CODE