Hello all.
I want to add an FAQ to my product page, but I want the FAQ displayed on the product page to be specific to each product category. I have only three main product categories: Candles, Wax Melts, and Reed Diffusers.
As a result, I have created three FAQ metaobjects:
- Candles FAQ
- Wax Melts FAQ
- Reed Diffuser FAQ
Each of these FAQ metaobjects has around 8-10 entries. Each entry comprises two fields: a question and an answer.
What I had hoped I could do, is create a product metafield definition, called Candle FAQ, for example, assigned to the category of ‘Candles’ and then anytime a user was on a product page for a candle, I could use the FAQ metaobject in a collapsible row.
Nope, not that simple. You can’t do that.
So I then thought I’d have to go into each product itself, select the metaobject from the category metafields section so it’s at least linked to the FAQ. Not the end of the world.
Nope, not that simple. You can’t do that.
What it appears I have to do, is set the candle FAQs metafield definition to the metaobject Candle FAQs, as a list of entries, and then go into my 60+ products, and select every entry within the FAQ for it to appear on the product page.
There has to be an easier way… Surely?
Does anyone know the simplest way to create an FAQ list, and link it to a product category to make it show on a product page that is specific to the product category? I’d really appreciate some help here. I even went as far as to try and create a new section called dynamic-faqs.liquid, but it couldn’t read the metaobject data for some reason, it knew there was data but couldn’t access it, despite allowing storefront access.
Any help greatly appreciated, thanks.
Rosalind.