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

Solved
Highlighted
Explorer
96 0 4
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
Shopify Expert
10006 116 1819

This is an accepted solution.

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