Hi,
Looking for solutions for inventory management for a wholesale portal that customers are able to access based on customer tag. Is there a way (preferably with an app) to show & hide inventory levels to customers tagged “wholesale?”
Thank you,
Elizabeth
Hi @edumesnil ,
Yes. Try the logic below
NOTE: Customer must be signed in to show wholesale since it is set to false by default.
{% assign wholesale = false %}
{% if customer %}
{% if customer .tags contains 'wholesale ' %}
{% assign wholesale = true %}
{% endif %}
{% endif %}
{% if wholesale %}
Show product cards...
{% endif %}