Exclude collection from product suggestions on Narrative

WhitneyMarston
New Member
2 0 1

Hi there, I'd like to exclude a collection on recommended products (on Narrative theme) - current product.recommendations.liquid looks like this. Please advise  

{%- if recommendations.performed -%}
  {%- if section.settings.show_product_recommendations -%}
    {%- if recommendations.products_count > 0 -%}
      <div class="product-recommendations">
        <div class="product-recommendations__heading grid text-center">
          <div class="grid__item medium-up--ten-twelfths medium-up--push-one-twelfth">
            <h2>{{ section.settings.heading | escape }}</h2>
          </div>
        </div>
        <ul class="product-recommendations__slider" data-recommendations-slider>
          {%- for product in recommendations.products -%}
            <li class="product-recommendations__slide" data-recommendations-slide data-product-recommendation-index="{{ forloop.index }}">
              {% include 'product-card', product: product %}
            </li>
          {%- endfor -%}
        </ul>
        {%- if recommendations.products_count > 1 -%}
          <div class="product-recommendations__indicators-wrapper" aria-hidden="true" data-recommendations-indicators>
            {%- for product in recommendations.products -%}
              <span class="product-recommendations__slide-indicator" data-recommendations-indicator data-product-recommendation-indicator-index="{{ forloop.index }}"></span>
            {%- endfor -%}
          </div>
        {%- endif -%}
      </div>
    {%- endif -%}
  {%- endif -%}
{%- else -%}
  <div data-base-url="{{ routes.product_recommendations_url }}" data-product-id="{{ product.id }}" data-section-id="{{ section.id }}" data-section-type="product-recommendations"></div>
{%- endif -%}

 

KetanKumar
Shopify Partner
18857 1983 6986

@WhitneyMarston 

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community!
Thanks for your good question.

sorry its not possible to change this dynamic code but you can add new section and call product page choose you collection 

 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
WhitneyMarston
New Member
2 0 1

Can you specify how to make a new section to exclude the collection? Thank you!

0 Likes
KetanKumar
Shopify Partner
18857 1983 6986

@WhitneyMarston 

you have add feature collection section add on product page 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes