Captain Shipping Protection Help Center
  • Cart page widget
  • About store theme compatibility
  • Shipping protection pricing
  • Checkout page widget
  • Auto-translation feature
  • Conversion Booster Toolkit
  • Hide shipping protection products from recommendations
  • Exclude shipping protection products from collection
  • Exclude widget in certain market
  • FAQs
  • Privacy Policy
Powered by GitBook
On this page

Hide shipping protection products from recommendations

PreviousConversion Booster ToolkitNextExclude shipping protection products from collection

Last updated 3 months ago

Before hiding the product

After hiding the product

Tutorials

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

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

Step 3: Search or select related-products.liquid

Step 4: Find the following codes and select them

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!