Debut theme

  1. In your Shopify Admin click Online Store .
  2. Click to Current Theme's Actions > Edit code.
  3. Open the product-template.liquid file under the Sections area of your Theme Editor.
  4. Copy the code below.
    {% unless product.metafields.coattend.enabled %}
     <button type="submit" name="add"
         {% unless current_variant.available %} aria-disabled="true"{% endunless %}
         aria-label="{% unless current_variant.available %}{{ 'products.product.sold_out' | t }}{% else %}{{ 'products.product.add_to_cart' | t }}{% endunless %}"
         class="btn product-form__cart-submit{% if section.settings.enable_payment_button %} btn--secondary-accent{% endif %}"
         data-add-to-cart>
         <span data-add-to-cart-text>
             {% unless current_variant.available %}
             {{ 'products.product.sold_out' | t }}
             {% else %}
             {{ 'products.product.add_to_cart' | t }}
             {% endunless %}
         </span>
         <span class="hide" data-loader>
             {% include 'icon-spinner' %}
         </span>
     </button>
    {% else %}
     <div {% unless current_variant.available %} aria-disabled="true"{% endunless %}
             aria-label="{% unless current_variant.available %}{{ 'products.product.sold_out' | t }}{% else %}{{ 'products.product.add_to_cart' | t }}{% endunless %}"
             class="coattend-button btn product-form__cart-submit{% if section.settings.enable_payment_button %} btn--secondary-accent{% endif %}"
             data-add-to-cart
             data-coattend-product-id="{{product.id}}"
             data-coattend-variant-id="{{product.selected_variant.id}}">{{ 'products.product.add_to_cart' | t }}</div>
    {% endunless %}
  5. Replace code from line 206 to 221. You can see what needs to be replaced on the below image. Debut theme code that needs to be replaced Debut theme code that needs to be replaced.
  6. Click Save

Congratulations! Continue and display your event.