How do I output a specific customer's metafield using if?

Solved
Explorer
63 0 3
I have a metafield "reserved" for customers.
customer.metafields.reserved.stuff
 
I need to "output" a specific customer's metafield ("reserved") in the .product-card-list.liquid "if" the product.tags contain "X".
Something like this:
 
{% if product.tags contains "reservedforTom"}
{{ customerID.customer.metafields.reserved.stuff }}
{% endif %}
 
How can I output a specific customer's metafield on the product-card-list based on their customer.id?
0 Likes
Highlighted

Success.

Shopify Expert
9819 92 1581

You are not going to be able to use the Customer ID. However, if the customer is logged in you'll be able to access the metafields via :

{{ customer.metafields.reserved.stuff }}

 Not 100% sure on your usage/context but skip the ID aspect.

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
1 Like