# Hide shipping protection products from homepage, collections, related products, and search

Because of Shopify’s shopping cart system, **Shipping Protection is created as a digital product in your store.**\
When you enable the Shipping Protection widget, the app automatically generates a Shipping Protection product so it can be added to orders.\
Since this product is digital, it may appear on your storefront. Below are a few ways you can hide the Shipping Protection product from being displayed on your website.

## Hide shipping protection products from home page

Our app automatically creates a collection named **“All”** for you to manage product visibility on the homepage. If you don’t see it working as expected, you can follow the steps below or [**contact us**](https://go.crisp.chat/chat/embed/?website_id=1dc48f94-5e00-41cc-bbf5-0f11ab481983) for further assistance

**Step 1:** Go to your **Shopify store’s Collections section** > Click **Create collection**

**Step 2:** fill in "**all**" in the collection title and select the collection type as **"Smart"**

Select the condition as "**all conditions**", then select the **product type**, select "**is not equal to**", and select the value as "**sam\_shipping\_protect**". Finally, click the "**Save**" button.

***This will exclude shipping protection items from all products.***

<figure><img src="/files/3ouMQpYBayqizYhmIaio" alt=""><figcaption></figcaption></figure>

## Hide shipping protection products in specific collections

Go to your **Shopify store’s Collections section** > Click the corresponding collection

When the condition of the collection is set to "***all conditions***", the shipping protection products need to meet all conditions to appear in the collection. So you can **add another condition**, select the **product type**, select "**is not equal to**", and select the value "**sam\_shipping\_protect**". Finally, click the "**Save**" button. In this way, the shipping protection products will not appear in the collection.

<figure><img src="/files/dghd6DFf1iqWpYR3rSDH" alt=""><figcaption></figcaption></figure>

When the condition of the collection is set to "***any condition***", the shipping protection product will appear in the collection when it meets any of the conditions. So if you want the shipping protection product not to appear in this type of collection, you need to check and make sure that the shipping protection product does not meet any of the conditions.

## Hide Shipping Protection from Related Products (Product Page)

If you are using Shopify’s default recommendation system (for example, I am currently using the **Dawn** theme), you will need to adjust your theme code slightly.

**Step 1:** Go to **Online Store > Theme > Edit Code**

<figure><img src="/files/Ia4qoS7L5m10iwNKblhg" alt=""><figcaption></figcaption></figure>

\
**Step 2:** Find the file that renders related products. (For example, in the Dawn theme, it’s `related-products.liquid`)

<figure><img src="/files/UE7qJOO4GqHcMv194Tnw" alt=""><figcaption></figcaption></figure>

\
**Step 3:** Wrap the product items inside the `for` loop **with an `{% if recommendation.type != 'sam_protect_shipping' %} ... {% endif %}` block** to exclude Shipping Protection:

```liquid
{% for recommendation in recommendations.products %}
  {% if recommendation.type != 'sam_protect_shipping' %} 
    <li class="grid__item">
      {% render 'card-product',
        card_product: recommendation,
        media_aspect_ratio: section.settings.image_ratio,
        image_shape: section.settings.image_shape,
        show_secondary_image: section.settings.show_secondary_image,
        show_vendor: section.settings.show_vendor,
        show_rating: section.settings.show_rating,
        skip_styles: skip_card_product_styles
      %}
    </li>
  {% endif %}
  {%- assign skip_card_product_styles = true -%}
{% endfor %}

```

After completing this, the **Shipping Protection product will no longer appear in the "related products" block** on product pages.

## Hide shipping protection products from search

To hide your **Shipping Protection** product from search results, follow these steps

**Step 1:** Go to **Settings > Metafields > Products** in your Shopify admin

<figure><img src="/files/I8tFZyw1MsZCkpIcwnCj" alt=""><figcaption></figcaption></figure>

**Step 2:** Click **Add definition** to create a new product metafield:

* **Name:** (e.g. *Hide Product*)
* **Namespace and key:** `seo.hidden`
* **Description:** *(optional)*
* **Type:** *Number (Integer)*

<figure><img src="/files/RghUHJKrtPXaSjrlNL3Q" alt=""><figcaption></figcaption></figure>

**Step 3:** Edit your **Shipping Protection** product — scroll down to the bottom of the product page and find the new metafield. Set its value to **1** to hide the product from search results

<figure><img src="/files/25Pwb3dUOfWjjmOBaUpF" alt=""><figcaption></figcaption></figure>

Please note that the modification position may vary depending on the theme you are using. If you find it difficult, feel free to contact us and we’ll be happy to assist you:

👉 [Chat with us](https://go.crisp.chat/chat/embed/?website_id=1dc48f94-5e00-41cc-bbf5-0f11ab481983)\
📧 <info@shop-wil.com>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://shopwil-organization.gitbook.io/sam-shipping-protection/faqs/hide-shipping-protection-products-from-homepage-collections-related-products-and-search.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
