Conditionals and customer tags

Shop2000
Excursionist
12 0 2

Hello,

I will need to seperate customer groups' pricing display and will need lots of conditionals checking for customer tags.

I dont want to repeat the same over and over again so I thought I could just set it in the settings_schema.json

"name": "Customer Groups",
"settings": [
{
"type": "text",
"id": "customer_tags_conditional",
"label": "customer_tags_conditional",
"default": "customer.tags contains 'reseller' or customer.tags contains 'taxfree'"
}

 

and then output them like

{% unless settings.customer_tags_conditional %}...

 

But that doesnt work. I also tried assigning and capturing "customer.tags contains 'reseller' or customer.tags contains 'taxfree'" and outputting it in the conditional.

Nothing has worked so far.

Any ideas how to accomplish this are appreciated.

Thanks

0 Likes