Why Is ShipInsure Appearing as a Product in My Store/Cart? How Do I Change This?

1 min. readlast update: 08.14.2024

Use the instructions in this article to ensure the ShipInsure Package Protection product is not included in your Shopify cart. 

Updating your template files

To hide the ShipInsure product from the cart view, you need to edit the cart template file for adding custom attribute.

  • In your Shopify admin, go to [Online Store] > [Themes]
  • Click [Edit code] under three-dot menu 

undefined

  • Find cart template file in the theme (ex. cart.liquid

undefined

  • You may need to edit [Sections] > cart-template.liquid in this example. Add data-shipinsure="{{item.vendor}}" attribute for each cart item's DOM element.

undefined

 

Adding your custom CSS

Also custom CSS needs to be added to the theme for hiding the ShipInsure line item.

  1. In your Shopify admin, go to [Online Store] > [Themes]
  2. Click [Customize]
  3. Click [Theme settings]
  4. Click [Custom CSS]
  5. Add the below CSS [data-shipinsure="ShipInsure"] {     display: none; }
  6. Click [Save] 

undefined

Please note that to revert these changes and have the ShipInsure Package Protection product visible in the cart, you can simply remove the custom CSS.

Was this article helpful?