Conditionally Hide the Gift Message Option on Product Pages 🏷️
Update 2021: Showing the gift message options on a per product basis is now best handled entirely by the product options feature. The default gift message feature can then be disabled.
In order to hide the default Gift Message option conditionally on your product pages based on individual products or collections, you can detect the contents in different manners (properties, tags, collections, etc.), and then conditionally load some CSS on your store if certain conditions are met.
Choose how you would like to build in this logic, and then find your product.liquid or product-template.liquid theme file.
Here is an example that shows how to only show the Gift Message option on two specific collections:
{% if template contains 'product' %} {% if product.title == "Product Name X" or product.title == "Product Name Y" %} <style> #gsAppContainer { display: none !important; } </style> {% endif %} {% endif %}
Can't find the answer in our documentation?
Contact Support Configuring Gift Messages 🏷️
Printing Gift Messages 🏷️
Conditionally Hide the Gift Message Option on Product Pages 🏷️
Editing a Gift Message After an Order Has Been Placed 🏷️
How to view orders that contain Gift Messages or Delivery Dates 🏷️
Use Shopify’s Packing Slip to Print Gift Messages 🏷️
How to Charge for a Gift Message 🏷️
Remove Name Attributes from Gift Messages 🏷️
How to Display a Gift Message on Your Cart Page When it was Added on Your Product Page 🏷️
Change the location of where the gift message appears on your orders to the order Notes section 🏷️
Ensure empty values are not submitted
Shopify Plus: Loading Giftship’s Features on the Checkout Page