How can I fix product repetition in a customer-specific product grid?

Hi everyone, thanks for taking your time reading this!

I have some problems with a section im trying to create. The sections function is to show customer sepcific products within a standard product / collection grid. Which products that will be shown for the customer is ruled by the customers tag, that containts the the products URL-handle.

My problem now is that I cant show all the products to the customer. lets say the customer got more then 20 products, the section will repeat the last products. (see pictures)

This customer have aprox 65 tags with product URL as value. I use the “all_products” to loop thrue all our shops products and then filter by the tags and I know that “all_products” only can show 20 products, but shouldent my pagnation work then? Im new to liquid and still learning so I have no clue if im way off and stupid or very close but so far.

This section is placed at /Customer addresses so maybe the pagnation for the adresses mess it up? Here is my code for the section and please dont laugh :roll_eyes: .

<div class="color-{{ section.settings.color_scheme }} gradient no-js-hidden">

  <div
    class="mina-annonser page-width section-{{ section.id }}-padding isolate{% if settings.animations_reveal_on_scroll %} scroll-trigger animate--slide-in{% endif %}"
    
  >
     <h2 class="mina-produkter {{ section.settings.heading_size }}">
        {{ section.settings.heading }}
      </h2>   

{% paginate collections['all'].products by 10 %}         
 
          <ul
              class="
                grid contains-card product-grid contains-card--product grid--{{ section.settings.columns_mobile }}-col-tablet-down
                grid--{{ section.settings.columns_desktop }}-col-desktop
              "
          >
  {% if customer %}   
    {% for tag in customer.tags %}     
      {% if tag contains 'product_' %}
        {% assign prod = tag | split: "_" | last %}      
          {% assign product = all_products[prod] %}   
           {% if product and product.available == true %}
                   
              <li class="grid__item">
                {% render 'card-product',
                  card_product: product,
                  media_aspect_ratio: section.settings.image_ratio,
                  show_secondary_image: section.settings.show_secondary_image,
                  show_vendor: section.settings.show_vendor,
                %}
              </li>  
           
      {% endif %} 
    {% endif %}
  {% endfor %}
{% endif %}
          
          </ul>

    {%- if paginate.pages > 0 -%}
              {% render 'pagination', paginate: paginate, anchor: '' %}
            {%- endif -%}
    
{%- endpaginate -%}
  
  </div>
</div>

{% schema %}

If someone belive that they can help us we´r very much willing to pay for your time!

Best regards,

Emma & Per