Keep gift products out of collections and search

Gift products are set up like any other product at a price of zero, so by default they appear in collections and search results. If a customer adds only the gift to the cart from there, the gift-only order is blocked at checkout, but hiding the gift from your storefront listings avoids the confusion.

Steps (recommended)

  1. In Shopify admin, go to Products and open the gift product.
  2. Set Status to Unlisted and save.
  3. Keep Online Store selected under Sales channels (without it, the gift can't be added to the cart).

Unlisted products don't appear in collections, search suggestions, or product recommendations. The product page still opens from its URL. Omake keeps adding unlisted products to the cart as gifts.

Keep it out of the search results page too

Even when unlisted, the product can still show on your store's search results page (the page you get after entering a search term and pressing Enter). To remove it from search results too, mark the product as hidden from search.

  1. Go to Settings > Custom data > Products and add a metafield definition. Name it something like "Hide from search", set the namespace and key to seo.hidden, and choose the Integer type.
  2. On the gift product's page, under Metafields, enter 1 for "Hide from search" and save.

Omake keeps adding the product to the cart as a gift with this setting. To undo it, clear the value and save.

Other ways

  • Exclude the gift from automated collections (such as "All products"). For example, tag the gift product gift and add the condition "Product tag is not equal to gift"
  • Don't add the gift product to manual collections

Good to know

  • If you set the status to Draft or Archived, the product can't be added to the cart and the gift won't be added. Use Unlisted.
  • If you set it back to Active, it appears in collections and search again.

解決しないときは

インストールから使い始めるまでの流れは、設定ガイドにまとめています。それでも解決しないときは、お気軽にお問い合わせください。

設定ガイドを見るお問い合わせ

Related articles

Back to all articles