FROM CACHE - en_header

Replace “Add to cart” with a contact link - Theme "IRA"

AnitaHansen
New Member
1 0 0
For products that are made to order or for one-of-a-kinds, I would need to replace the "Buy now" Button with "Send inquiry". I looked up the instructions https://help.shopify.com/en/manual/online-store/themes/os/customize/replace-add-to-cart BUT I could not find the code to be replaced right in the beginning. 

{% section 'product-template' %}

My theme is "IRA" and this is the codes/HTML from the new product template that I created. What am I supposed to do? What code needs to be replaced. Hope you can help.
Thank you,
Anita

{% section 'product--static' %}
 
<div class="sections">
  {% section 'recommended-products--static' %}
  {% section 'collection-list--static' %}
  {% section 'gallery--static' %}
</div>
 
{% assign current_variant = product.selected_or_first_available_variant %}
 
<script type="application/ld+json">
{
  "@context": "http://schema.org/",
  "@type": "Product",
  "name": {{ product.title | json }},
  "url": {{ shop.url | append: product.url | json }},
  {%- if product.featured_media -%}
    {%- assign media_size = product.featured_media.preview_image.width | append: 'x' -%}
    "image": [
      {{ product.featured_media | img_url: media_size | prepend: "https:" | json }}
    ],
  {%- endif -%}
  "description": {{ product.description | strip_html | json }},
  {%- if current_variant.sku != blank -%}
    "sku": {{ current_variant.sku | json }},
  {%- endif -%}
  "brand": {
    "@type": "Thing",
    "name": {{ product.vendor | json }}
  },
  "offers": [
    {%- for variant in product.variants -%}
      {
        "@type" : "Offer",
        {%- if variant.sku != blank -%}
          "sku": {{ variant.sku | json }},
        {%- endif -%}
        "availability" : "http://schema.org/{% if variant.available %}InStock{% else %}OutOfStock{% endif %}",
        "price" : {{ variant.price | divided_by: 100.00 | json }},
        "priceCurrency" : {{ cart.currency.iso_code | json }},
        "url" : {{ shop.url | append: variant.url | json }}
      }{% unless forloop.last %},{% endunless %}
    {%- endfor -%}
  ]
}
</script>
Replies 0 (0)