I’m pretty new to all of this, apologies if this is a dumb question.
Let’s say I’ve got a metaobject definition that includes a field of the “product” type, called “related_product”. On each entry, I select the related product. On the page template for that metaobject, I want to display a button only if that referenced product is available.
In a custom liquid element, I’m finding that
{{ metaobject.related_product }}
kicks out the gid of the related product I selected on that entry. Great, so it’s seeing that product
But I was hoping to do something like
{% if metaobject.related_product.available is “true” %}
Display button
{% endif %}
But can’t seem to get anything like that to work. Any way to make something like that work?