New Product Fields

Solved
arods
New Member
3 0 0

Hi there,

I am trying to add specific content for each product item and then display the content in an accordion, the accordion itself is not the problem, I have added the accordion to the appropriate liquid file and included the correct delivery and returns content but for the other 3 items in the accordion (see screenshot below) I am struggling to find a way to add this content. It would be great if you could suggest a way by editing the theme code rather than installing an app. 

arods_1-1618917295116.png

Thanks in advance.

 

0 Likes
JHKCreate
Shopify Partner
2499 412 595

Hi @arods 

If this information is unique to each product, you would need metafields to extend this functionality. 

Let me know if this is the case

- Did we solve your issue? Like & Mark As Solution to help the community
- Should you need any direct help: contact@jhkcreate.com
0 Likes
arods
New Member
3 0 0

Yes the information would be unique to each product, do you have sample code or a good example of how metafields work, I would just need 3 additional textarea fields for the likes of ingredients, how to use and additional information that is separate to the description field.

0 Likes
Scott-Marshall
Excursionist
36 3 3

This is an accepted solution.

Hi @arods,

If the content will need to be specific on a per-product basis, you'll need to use metafields (https://shopify.dev/docs/themes/liquid/reference/objects/metafield) to accomplish what's desired. There are plenty of apps that allow you to create metafields easily (https://apps.shopify.com/search?q=metafield), however, if you need assistance, feel free to reach out!

Cheers,

0 Likes
arods
New Member
3 0 0

Thanks @Scott-Marshall.

0 Likes