Liquid, JavaScript, themes, sales channels
Hey guys,
so I added a metafield to my product called storageLocation.
It is located under product.metafields.storageLocation.storageLocation.
I'm using an app that prints out all LineItems of an order.
And I want to display the storageLocation-Field as well but it doesn't work.
The code is something like this:
{% for line_item in line_items %}
{{ line_item.product_title }}
{{ line_item.product.metafields.storageLocation.storageLocation }} <-- THIS DOESN'T WORK
{% endfor %}
I was wondering why this doesn't work, since I often used metafields for products before. But it seems that you cant reach the metafields of a product from the lineItem.
Hope someone can maybe try it out and help me.
Greetings 🙂
Dominik
Did you manage to figure out a solution, kinda in the same boat now!
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