Preventing Giftship’s Features from Being Removed from the Cart Page When Using The Prestige Theme

The Prestige theme from Shopify triggers a full page re-render when the cart page is visited. This effectively removes any content that gets added in by an application.

In order to resolve this, please open your theme editor by navigating to Shopify Admin -> Online Store -> “Your Prestige Theme” -> Edit Code. Once in the theme editor, open your theme.liquid file, and find the below line of code:

document.documentElement.dispatchEvent(new CustomEvent('cart:refresh', {
  bubbles: true
}));

Once found, replace it with the below code, and click save.

{% comment %}
  /**
  * The below code removes applications content from the cart page on page load,
  * so it needs to be commented out in order to allow Giftship to function.
  *
  */
  document.documentElement.dispatchEvent(new CustomEvent('cart:refresh', {
  bubbles: true
  }));
{% endcomment %}

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