Liquid help - is there a way to target multiple catalogIds?
i'm using following markup in large product template display 'this product doesn't ship outside of uk' notification. problem want target more 2 catalog ids message. there way this?
{% if catalogid == "" or catalogid == "" , countrycode != "gb" or globals.visitor.country != "gb" %}
thanks
try this:
{% if catalogid == 88 or catalogid == 123 %}
{% if countrycode != "gb" or globals.visitor.country != "gb"%}
'this product doesn't ship outside of uk'
{% endif %}
{% endif %}
do note catalog ids numeric don't use quotes when comparing them.
thanks,
mihai
More discussions in Developer forum
adobe
Comments
Post a Comment