商品タイプの異なる商品の同時購入制限について

商品タイプが異なる場合に、複数の商品を同時購入できなくするように設定したいです。

下記の回答を参考にしてみたのですが、dawnのテーマを使用しているため「cart-template.liquid」ファイルがありません。

dawnテーマの場合は、どのファイルに設定すれば購入制限をかけられるようになりますか?

https://community.shopify.com/post/1107122

「main-cart-fotter.liquid」に設定したらできました。

ファイル内の下記「購入ボタン」のコードがある部分を

< button type="submit" id="checkout" class="cart__checkout-button button" name="checkout"{% if cart == empty %} disabled{% endif %} form="cart">
        {{ 'sections.cart.checkout' | t }}

 {%- if additional_checkout_buttons -%}
    
     {{ content_for_additional_checkout_buttons }}
   

  {%- endif -%}

下記のように置き換えたら購入ボタンの表示・非表示が可能になりました。

{%- comment -%}
---------------------------------------------------------------------
        同時購入禁止
---------------------------------------------------------------------
{%- endcomment -%}
            
{%- for item in cart.items -%}
    {%- for tag in item.product.tags -%}
        {%- if tag == '通常商品' -%}
            {% assign typeA = true %} 
        {%- endif -%}
        {%- if tag == '限定商品' -%}
            {% assign typeB = true %}
        {%- endif -%}
    {%- endfor -%}
{%- endfor -%}

{%- unless typeA == true and typeB == true -%}
    
{%- endunless -%}
            
  {%- if typeA == true and typeB == true -%}
  

  【注意】
通常商品と限定商品を同時に購入することはできません。

  お手数ですがカートからどちらかの商品を削除してページをしてください。
  

  {%- endif -%}

 {%- if additional_checkout_buttons -%}
    
     {{ content_for_additional_checkout_buttons }}
   

  {%- endif -%}