Hi,
We are using an app called Accentuate Custom Fields to add custom fields to our products and other kinds of posts.
We want to display products that have been added from Accentuate Custom Fields on a certain type of Blog called Articles. In other words, there will be different display of products in every single article depending on what products were added/assigned from Accentuate Custom Fields.
I am able to display a non-repeating field assign to a specific article from Accentuate Custom Fields through this code {{ article.metafields.customsection.text }}
My current problem is that I want to get the product object by looping through the liquid code given by Accentuate. The liquid code given by Accentuate is {{ article.metafields.customsection.product }}
My current code to try to get the product object:
{%- assign productNames = article.metafields.customsection.product -%}
{%- for productSingle in productNames -%}
{% assign productSingle = all_products[productSingle] %}
- {{ productSingle }}
{%- endfor -%}
I want to get the product object so I can do multiple things with it. Any help is greatly appreciated. Thank you.