Some things I would check:
-
Are the tags consistent? (for example “vip” is different than “VIP”)
-
Are there any console errors on your site that could be interfering with code logic? (if you’re not familiar with the console see https://speedboostr.com/finding-and-fixing-console-errors/)
-
Does this functionality work on an older theme in preview mode? (that will tell you if changes to a new theme caused the problem)
-
Does it function for certain users, or no users
Those checks should help you narrow down the problem (and hopefully solve it). If you can’t figure it out and would like a professional Shopify developer to take a look, reach out to my team at speedboostr.com/contact. We work on Shopify sites and apps every day.