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

Popular posts from this blog

Adobe Reader DC install error 150410

Error: 100600 Update failed, updates have been disabled by your system policy

ReferenceError: Window does not have a constructor : 325