Seo Hidden

demo site 
marktdiscount

featured-collection.liquid
line 100=>150 
{%- for product in section.settings.collection.products limit: section.settings.products_to_show -%}
            {% unless product.metafields.custom.seo_hidden_hide_product == '1' %}
                 {% if product_count >= section.settings.products_to_show %}
              {% break %}
            {% endif %}
               {% assign product_count = product_count | plus:1 %}
              
          <li
            id="Slide-{{ section.id }}-{{ forloop.index }}"
            class=" swiper-slide  grid__item{% if show_mobile_slider or show_desktop_slider %} slider__slide{% endif %}"
          
          >
            {% render 'card-product',
              card_product: product,
              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,
              section_id: section.id,
              quick_add: section.settings.quick_add
            %}
          </li>
          {%- assign skip_card_product_styles = true -%}
        {%- else -%}
          {%- for i in (1..section.settings.columns_desktop) -%}
             {% unless product.metafields.custom.seo_hidden_hide_product == '1' %}
            <li
              class="grid__item{% if settings.animations_reveal_on_scroll %} scroll-trigger animate--slide-in{% endif %}"
              {% if settings.animations_reveal_on_scroll %}
                data-cascade
                style="--animation-order: {{ forloop.index }};"
              {% endif %}
            >
              {% liquid
                assign ridx = forloop.rindex
                case ridx
                  when 5
                    assign ridx = 1
                  when 6
                    assign ridx = 2
                endcase
              %}
              {%- assign placeholder_image = 'product-apparel-' | append: ridx -%}
              {% render 'card-product',
                show_vendor: section.settings.show_vendor,
                media_aspect_ratio: section.settings.image_ratio,
                image_shape: section.settings.image_shape,
                placeholder_image: placeholder_image
              %}
            </li>
            {% endunless %}
main-collection-product-grid.liquid
158 ->178
 {%- for product in collection.products -%}
                {% unless product.metafields.custom.seo_hidden_hide_product == '1' %}
              
                {% assign lazy_load = false %}
                {%- if forloop.index > 2 -%}
                  {%- assign lazy_load = true -%}
                {%- endif -%}
                <li
                  class="grid__item{% if settings.animations_reveal_on_scroll %} scroll-trigger animate--slide-in{% endif %}"
                  {% if settings.animations_reveal_on_scroll %}
                    data-cascade
                    style="--animation-order: {{ forloop.index }};"
                  {% endif %}
                >
                  {% render 'card-product',
                    card_product: product,
                    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,
                    lazy_load: lazy_load,
                    skip_styles: skip_card_product_styles,
                    quick_add: section.settings.quick_add,
                    section_id: section.id
                  %}
                </li>
                {%- assign skip_card_product_styles = true -%}
                    {% endunless %}
              {%- endfor -%}
main-search.liquid
136->154
  {%- unless section.settings.enable_filtering or section.settings.enable_sorting -%}
       
          {%- if search.results_count > 0 -%}
          
            {%- assign visible_results_count = 0 -%}
            {%- for item in search.results -%}
              {% unless item.metafields.custom.seo_hidden_hide_product == '1' %}
                {%- assign visible_results_count = visible_results_count | plus: 1 -%}
              {% endunless %}
            {%- endfor -%}
            
          {%- if visible_results_count > 0 -%}
              <p role="status">
                {{ 'templates.search.results_with_count_and_term' | t: terms: search.terms, count: visible_results_count }}
              </p>
            {%- endif -%}
            
          {%- endif -%}
        {%- endunless -%}
286-> 300 
 {% unless item.metafields.custom.seo_hidden_hide_product == '1' %}
                        {%- capture product_settings -%}{%- if section.settings.product_show_vendor -%}vendor,{%- endif -%}title,price{%- endcapture -%}
                        {% render 'card-product',
                          card_product: item,
                          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,
                          lazy_load: lazy_load,
                          skip_styles: skip_card_product_styles
                        %}
                        {% endunless %}
                        {%- assign skip_card_product_styles = true -%}
                      {%- when 'article' -%}
predictive-search.liquid
132->170 
  {%- for product in predictive_search.resources.products -%}
                {% unless product.metafields.custom.seo_hidden_hide_product == '1' %}
                <li
                  id="predictive-search-option-product-{{ forloop.index }}"
                  class="predictive-search__list-item"
                  role="option"
                  aria-selected="false"
                >
                  <a
                    href="{{ product.url }}"
                    class="predictive-search__item predictive-search__item--link-with-thumbnail link link--text"
                    tabindex="-1"
                  >
                    {%- if product.featured_media != blank -%}
                      <img
                        class="predictive-search__image"
                        src="{{ product.featured_media | image_url: width: 150 }}"
                        alt="{{ product.featured_media.alt | escape }}"
                        width="50"
                        height="{{ 50 | divided_by: product.featured_media.preview_image.aspect_ratio }}"
                      >
                    {%- endif -%}
                    <div class="predictive-search__item-content{% unless settings.predictive_search_show_vendor or settings.predictive_search_show_price %} predictive-search__item-content--centered{% endunless %}">
                      {%- if settings.predictive_search_show_vendor -%}
                        <span class="visually-hidden">{{ 'accessibility.vendor' | t }}</span>
                        <div class="predictive-search__item-vendor caption-with-letter-spacing">
                          {{ product.vendor }}
                        </div>
                      {%- endif -%}
                      <p class="predictive-search__item-heading h5">{{ product.title | escape }}</p>
                      {%- if settings.predictive_search_show_price -%}
                        {% render 'price', product: product, use_variant: true, show_badges: false %}
                      {%- endif -%}
                    </div>
                  </a>
                </li>
                     {% endunless %}
              {%- endfor -%}
tzn-cross-cell-product.liquid
17->23
     {% unless related_product.metafields.custom.seo_hidden_hide_product == '1' %}
                   
                  <li class="grid__item swiper-slide">
                    {% render 'card-product', card_product: related_product %}
                  </li>
                      {% endunless %}
              {% endfor %}
tzn-product-related.liquid
22->31
   {% for related_product in related_products limit: product_limit %}
                {% unless related_product.metafields.custom.seo_hidden_hide_product == '1' %}
                {% unless related_product.id == current_product.id %}
                  <li class="grid__item swiper-slide">
                    {% render 'card-product', card_product: related_product %}
                  </li>
                  {% assign show_default_products = false %}
                    {% endunless %}
                     
                {% endunless %}
              {% endfor %}

Leave a Reply

Your email address will not be published. Required fields are marked *