How to Disable the “gistToken” Attribute in the Additional Details of Your Orders

In August 2021, Giftship included advanced feature usage tracking, allowing for quick insight in to usage statistics of various application features. In order to show statistics for completed orders, a cart attributes entitled “gistToken” is added to your orders.

In some cases, you may need to adjust your packing slip templates to ensure this value is not printed along with your gift messages. If you are using the “Print with Giftship” feature, nothing needs to be done, as we won’t print this value by default.

If you are using Shopify’s free Order Printer application, you can adjust what is printed by explicitly deciding what to print and where by customizing your template.

In other cases, such as if you handle printing of gift message with ShipStation, you may need to remove this attribute all together.

In order to do so, please follow the below steps:

  1. Navigation to Shopify Admin -> Online Store -> Themes -> “Your Theme” -> Actions -> Edit Code.
  2. In the folder navigation, click on Layout -> theme.liquid.
  3. Find the line in the theme.liquid that contains the Giftship snippet. This will appear either as {% render ‘giftship’ %} or {% include ‘giftship’ %}. If this line is not there, please run the “perfomance utilility“, and start from step 1.
  4. Directly above this line, add the following code:
<script>
      
  /** Disable gistToken attribute */
      
  if (typeof(GIST) == 'undefined') {
    window.GIST = GIST = {};
  }      

  window.GIST.disable_token = true;
      
</script>
  1. Once complete, the file should look like this:
  1. Click Save.

Can't find the answer in our documentation?
Contact Support