0

How we can display product features dynamically, different for each product?

For example, we have a cosmetic product that has different ingredients. On the front page, I need to display its ingredients with icons. I am not sure that this can be done by product attributes like in WooCommerce.

See the attached image to understand what I mean. I am also curious how we can add them to products also.

Product page is displaying ingredients with icons

5
  • Explain your problem more clearly, please. Is product a custom post type? How do you store ingredients right now etc...
    – anton
    Apr 22, 2021 at 9:53
  • @anton Product is a WooCommerce product. I currently did not store any ingredients. It's a screenshot from a Shopify website link. But I want to implement this in WordPress. How I can store this type of data and how to display it? Thank you! Apr 22, 2021 at 11:30
  • I think this is not question I can answer just "do this..". It depends on your purposes, your theme etc. For me it's ok to use attributes to store product ingredients. As any other term of taxonomy it has a title and description already. Then, on your shop page you may do different manipulations with this attributes like show them in filter, show products with specific ingredients etc. If you are not a php developer I think it's easier to find a plugin which adds images to product attributes.
    – anton
    Apr 22, 2021 at 11:57
  • Thank you. It may help me. Apr 22, 2021 at 12:05
  • Then you may post another question here, like how to display attributes' images on front end, or maybe you will decide to display them separately (by default they displayed in additional information tab). But on this question will be much easier to give an answer or give a code to achieve this. Good luck)
    – anton
    Apr 22, 2021 at 12:15

1 Answer 1

1

You can use the popular ACF plugin to dynamically add fields and field groups to the product page.

Start with frequently asked questions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.