> For the complete documentation index, see [llms.txt](https://docs.captaintop.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.captaintop.com/hide-shipping-protection-products-from-recommendations.md).

# Hide shipping protection products from recommendations

Before hiding the product

<figure><img src="https://2954845303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9XevMeBXdTmF9u9ZWzEA%2Fuploads%2F2ySdMTDwViv8NWS4qpUP%2Fimage0.png?alt=media&amp;token=7309bd85-0e97-4162-b0db-1c74e344973f" alt=""><figcaption></figcaption></figure>

After hiding the product

<figure><img src="https://2954845303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9XevMeBXdTmF9u9ZWzEA%2Fuploads%2FyWnMWIBUEArPFPedDLhH%2Fimage02.png?alt=media&amp;token=9b49eb1f-26a2-475e-b62c-608bc9ab848e" alt=""><figcaption></figcaption></figure>

### Tutorials

Step 1: In Shopify admin, navigate to **Theme** > click **Customize**

<figure><img src="https://2954845303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9XevMeBXdTmF9u9ZWzEA%2Fuploads%2FscenXAhuW3prSLNEHDmK%2FSnipaste_1.png?alt=media&amp;token=0cd31f4e-ea6a-4b73-aef0-1a6ada31f2fb" alt=""><figcaption></figcaption></figure>

Step 2: Click the three dots beside the theme name, click **Edit code**

<figure><img src="https://2954845303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9XevMeBXdTmF9u9ZWzEA%2Fuploads%2FZpK5ThKAJpKukq9vnLDm%2FSnipaste_2.png?alt=media&amp;token=d0e34283-b8d7-47f0-8af8-3b1b399931f0" alt=""><figcaption></figcaption></figure>

Step 3: Search or select **related-products.liquid**&#x20;

<figure><img src="https://2954845303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9XevMeBXdTmF9u9ZWzEA%2Fuploads%2F8yFBYCvEYymI0pY716iJ%2FSnipaste_3.png?alt=media&amp;token=cde6e867-de39-4439-b630-18b3681e5022" alt=""><figcaption></figcaption></figure>

Step 4: Find the following codes and select them

<figure><img src="https://2954845303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9XevMeBXdTmF9u9ZWzEA%2Fuploads%2F0yjeJdDlBqwJdHpUjaMv%2FSnipaste_4.png?alt=media&amp;token=b9245399-0842-4e5d-8a4f-c1193ad11be2" alt=""><figcaption></figcaption></figure>

Step 5: Replace them with the following new codes

```
<ul
        class="grid product-grid grid--{{ section.settings.columns_desktop }}-col-desktop grid--{{ section.settings.columns_mobile }}-col-tablet-down"
        role="list"
      >
        {% for recommendation in recommendations.products %}
          {% if recommendation.vendor contains "ShipWill" %}
           {% continue %}
           {% else %}
          <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
            %}
          </li>
          {% endif %}
        {% endfor %}
      </ul>
```

Step 6: All set, below are the targeted codes, don't forget to save and check it live!

<figure><img src="https://2954845303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9XevMeBXdTmF9u9ZWzEA%2Fuploads%2FYoFRospELnjK5qQbCP9h%2FSnipaste_5.png?alt=media&amp;token=f15a9250-2bc6-42e9-86ed-e8c2b63b7190" alt=""><figcaption></figcaption></figure>
