Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I cannot reference metaobjects that are referenced from metaobjects.
The metaobjects are set up properly and I can see the gid values for the objects in the reference field, but I can't actually do anything with the referenced objects.
This is the proof that the metaobject schema is populated properly.
See here that there are categories and they have event metaobjects referenced in the events field.
Console Output:
Raw Categories Data:
Now take a look at this part of the script. The goal is to be able to iterate through these events and then use them in the code.
Solved! Go to the solution
This is an accepted solution.
Try to change
{% assign categoryEvents = category.events %}
to
{% assign categoryEvents = category.events.value %}
Then the rest should be correct.
This is an accepted solution.
Try to change
{% assign categoryEvents = category.events %}
to
{% assign categoryEvents = category.events.value %}
Then the rest should be correct.
Thank you! I had tried the plural (.values) but not the singular (.value).
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024