Hey @SquareMarket ,
If you’re still looking for the solution, try this:
{%- assign item_collections = '' -%}
{%- for line_item in cart.items -%}
{%- for collection in line_item.product.collections -%}
{%- assign item_collections = item_collections | append: collection.title | append: ',' -%}
{%- endfor -%}
{%- endfor -%}
{%- assign item_collections = item_collections | split: ',' | uniq -%}
{%- if item_collections.size > 1 -%}
//Can not checkout
{%- else -%}
//Checkout
{%- endif -%}