Hide warranties from search results

Stop Mulberry protection-plan products from appearing in your storefront search.

When the Mulberry Product Protection app is installed, Mulberry creates protection-plan products in your catalog so customers can add coverage to their cart. These are non-physical add-ons that can't be bought on their own, so they shouldn't surface in storefront search. This guide adds a one-line Liquid filter to your theme's search template that skips any product whose vendor is Mulberry, leaving the rest of your search results untouched.

🚧

This applies only to standard Shopify search

The fix below edits your theme's search.liquid. If your storefront search is powered by a third-party search app (or any other custom method), that app renders results outside Liquid and this filter will not take effect — exclude Mulberry products in that app's settings instead.

Prerequisites

Before you start, make sure:

  1. The Mulberry Product Protection app is installed on your store. See Install the Mulberry app.
  2. You can access Online Store → Themes → Edit code (the theme has a search.liquid template — i.e. it is not a headless or Online Store 2.0 search section that renders results elsewhere).
  3. You're comfortable editing theme Liquid, or you have someone who is. Edit a duplicate of your live theme first if you want to preview the change before publishing.

Add the filter to your search template

  1. In Shopify admin, go to Online Store in the left-hand navigation.

  2. Find your current theme, click the Actions dropdown, and select Edit code. You should now see the theme's file tree with a search box at the top left.

    Edit code from the theme Actions menu

  3. In the file search box, type search.liquid and click the search.liquid file to open it. You should now see the search template's code in the editor.

    Open search.liquid

  4. Find the line that opens the results loop:

    {%- for item in search.results -%}

    Immediately below it, paste this snippet so every Mulberry product is skipped before it renders:

    {% if item.vendor == 'Mulberry' %}
      {% continue %}
    {% endif %}

    Insert the filter below the results loop

    📘

    Why filter on vendor

    Every Mulberry protection product is created with the vendor set to Mulberry, so item.vendor == 'Mulberry' reliably matches them all without touching your own products. (item is the loop variable from {%- for item in search.results -%}; search results that aren't products simply have no vendor and are left alone.)

  5. Click Save, then run a live search on your storefront for a term that previously returned a Mulberry plan. You should now see only your real products — no Mulberry protection plans in the results.

👍

That's it

No app setting or Mulberry-side change is needed. Warranty offers still appear on product pages and at checkout exactly as before — this only hides protection products from the search results list.