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:
- Navigation to Shopify Admin -> Online Store -> Themes -> “Your Theme” -> Actions -> Edit Code.
- In the folder navigation, click on Layout -> theme.liquid.
- Find the line in the theme.liquid that contains: content_for_header
- 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>
- Once complete, the file should look like this:
- Click Save.