Venture theme
- In your Shopify Admin click Online Store.
- Click to Current Theme's Actions > Edit code.
- Open the product-template.liquid file under the Sections area of your Theme Editor.
- Copy the code below.
{% unless product.metafields.coattend.enabled %} <button type="submit" name="add" id="AddToCart-{{ section.id }}" class="btn btn--full product-form__cart-submit{% unless current_variant.available %} btn--sold-out{% endunless %}{% if section.settings.enable_payment_button %} btn--secondary-accent{% endif %}" {% unless current_variant.available %}disabled="disabled"{% endunless %}> <span id="AddToCartText-{{ section.id }}"> {% unless current_variant.available %} {{ 'products.product.sold_out' | t }} {% else %} {{ 'products.product.add_to_cart' | t }} {% endunless %} </span> </button> {% if section.settings.enable_payment_button %} {{ form | payment_button }} {% endif %} {% else %} <div class="coattend-button btn btn--full product-form__cart-submit{% unless current_variant.available %} btn--sold-out{% endunless %}{% if section.settings.enable_payment_button %} btn--secondary-accent{% endif %}" {% unless current_variant.available %}disabled="disabled"{% endunless %} data-coattend-product-id="{{product.id}}" data-coattend-variant-id="{{product.selected_variant.id}}"> <span id="AddToCartText-{{ section.id }}"> {% unless current_variant.available %} {{ 'products.product.sold_out' | t }} {% else %} {{ 'products.product.add_to_cart' | t }} {% endunless %} </span> </div> {% endunless %}
- Replace code from line 193 to 208. You can see what needs to be replaced on the below image.
- Click Save
Congratulations! Continue and display your event.