Hiding Upsell Products on Your Online Store ✏️
Since upsell products act as any other regular product on your store, it will be treated as such without adding conditions into your templates. If you would like to hide these products on your store, you could set the product type of these product to be ‘HIDDEN’.
To hide these products, you can check for items with a product type of ‘HIDDEN’ in your collection product loop, then skip to the next product without displaying the hidden one using this code snippet:
{% if product.type == 'HIDDEN' %}
{% continue %}
{% endif %}
Similar logic would have to be applied throughout your theme wherever you need to ensure the product is not displayed.
If you want to hide this collection from your collection page, the same logic applies to your collections.liquid file:
{% if collection.handle == 'upsell-collection' %}
{% continue %}
{% endif %}
Can't find the answer in our documentation?
Contact Support Style Giftship Elements by Using CSS Overrides ✏️
Using a Drawer or Popup Cart with Giftship’s Features ✏️
Change the location of Giftship’s features ✏️
Using Giftship in Multiple Languages ✏️
Only Show ‘Ship to Multiple Address’ Toggle if More Than 1 Item in Cart ✏️
Change the Location of the “Ship to multiple addresses” Checkbox ✏️
Preventing “Hidden” Line Item Properties from Displaying on Your Store ✏️
Hiding Upsell Products on Your Online Store ✏️
Ensuring the Logo Link is Active and ‘Back to Cart’ Breadcrumb is Always Present During Checkout ✏️
Change the Default Gift Box Icon ✏️