Liquid, JavaScript, themes, sales channels
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.
Thanks in advance.
Solved! Go to the solution
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,
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
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.
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,
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