Here is the code to add the eGift button to a specific product:
{% if product.title contains "product title" %}
<style> .gwbutton {display: inline !important} </style>
{%else%}
<style> .gwbutton {display: none !important} </style>
{%endif%}

If you would like to place the button on a specific collection place this code on your product page (replace the "collection name" with the desired collection):

{%assign all_collections = product.collections | map: 'title' | join: ',' | downcase %}            
{% if all_collections contains "collection name" %}
  <style>.gwbutton {display:none !important}</style>
{% else %}
  <style>.gwbutton {display:inline   !important}</style>
{% endif %}

In order to selectively place the button on a specific product, use this code:
{% if product.title contains "product title" %}
<style> .gwbutton {display: inline !important} </style>
{%else%}
<style> .gwbutton {display: none !important} </style>
{%endif%}


Related articles:

Got more questions or any feature ideas?
Please contact us through the chat box or at [email protected]

Did this answer your question?