title: Shopify / Liquid - inserting product recommendations onto cart page
body: <p>I want to add product recommendations on my shopify cart page.</p>
  <p>I have added:
  <code>{% section 'product-recommendations' %} </code> in the <code>cart.liquid</code> file.</p>
  <p>This file consists of:</p>
  <pre><code>{%- if section.settings.show_product_recommendations -%}
    {%- if recommendations.performed -%}
  {%- if recommendations.products_count &gt; 0 -%}
        &lt;div class=&quot;product-recommendations__inner&quot;&gt;
          {%- if section.settings.heading != blank -%}
          
            &lt;div class=&quot;section-header&quot;&gt;
              &lt;h2&gt;{{ section.settings.heading | escape }}&lt;/h2&gt;
            &lt;/div&gt;
          {%- endif -%}
          &lt;ul data-slides=&quot;8&quot; id='product-slider' class=&quot;grid grid--uniform grid--view-items product-slider&quot;&gt;
            {%- for product in recommendations.products -%}
              &lt;li class=&quot;grid__item small--one-half medium-up--one-quarter&quot;&gt;
                {% include 'product-card-grid', max_height: 250, product: product, show_vendor: section.settings.show_vendor %}
              &lt;/li&gt;
            {%- endfor -%}
          &lt;/ul&gt;
        &lt;/div&gt;
      {%- endif -%}
    {%- else  -%}
      &lt;div class=&quot;page-width recommendations-container&quot; data-base-url=&quot;{{ routes.product_recommendations_url }}&quot; data-product-id=&quot;{{ product.id }}&quot; data-section-id=&quot;{{ section.id }}&quot; data-section-type=&quot;product-recommendations&quot;&gt;&lt;/div&gt;
    {%- endif -%}
  {%- endif -%}
  </code></pre>
  <p>It is being inserted into the page (I can see the container), but nothing actually renders other than the container margin/padding. I suspect its because I'm not on a product page.</p>
  <p>How would I make this work on the cart page?</p>