How to add infinite scroll to a collection page on Motion theme?

How can I add infinite scroll in the collection page on my motion theme?

I have tried using apps like Infy Scrolller but it didn’t work at all.
Here is my collection page link where I want to add that: Products – GoCheapStore.com Password- xml

Thanks In Advance

1 Like

@zahin

thanks for post

https://www.huratips.com/tech-tips/how-to-add-infinite-scroll-pagination-to-shopify-collection-pages.html

can you please try this

1 Like

Hello @KetanKumar ,

Thanks a lot for the help. But I am so sorry, It didn’t work. It’s showing load more but it disables all my product images and now its looking horrible.

You can watch the new version here. Products – GoCheapStore.com

Please let me know what else I need to do.

Thanks

@zahin

oh sorry

bt your store is password protect can you please share us

1 Like

I want to know if you have solved this problem now?

Password- xml

@KetanKumar

@zahin

oh sorry for this

can you please revert your code and if possible to add me on staff account so i will check and update

1 Like

@KetanKumar how can I add you brother? Can you please instruct me on how to do that?

@zahin

https://help.shopify.com/en/manual/your-account/staff-accounts/create-staff-accounts

1 Like

sent bro, have you got it?

@KetanKumar

1 Like

hello brother, @KetanKumar have you got your access?

@zahin

i have update code please check

1 Like

@KetanKumar

Bro after the load more is done causing more products to come, it is not showing the product image until it hovers. How can I solve it?

1 Like

@zahin

i have just disable animation its work can you please check

1 Like

Do you mind sharing the code snippet for the resolution for your Motion theme? I am trying to implement the same thing.

@KetanKumar @zahin

Would you mind sharing the code snippet used for the infinity collection page scroll for Motion? I am trying to implement the same thing.

Below is the default code snippet from the collection.template

{%- for product in collection.products -%}
            {%- render 'product-grid-item'
              product: product,
              grid_item_width: grid_item_width,
              per_row: per_row
            -%}
          {%- else -%}
            
              

{{ 'collections.general.no_matches' | t }}

            

          {%- endfor -%}
        

        {%- if paginate.pages > 1 -%}
          {%- render 'pagination', paginate: paginate -%}
        {%- endif -%}

        {%- if settings.quick_shop_enable -%}
          {%- for product in collection.products -%}
            {%- render 'quick-shop-modal', product: product -%}
          {%- endfor -%}
        {%- endif -%}
      
    

1 Like

@ReidW27

Yes please try this

https://www.huratips.com/tech-tips/how-to-add-infinite-scroll-pagination-to-shopify-collection-pages.html

1 Like

At first, I am thankful for the guy @KetanKumar , and he has solved the problem of my shop!

However, after working on my shop, I examined the changes he had made and wrote them in a text file cause my brother also wants me to teach him, but he does not know to code. I am sharing that text file. I hope it will work perfectly. @ReidW27

Adding Up Infinite scroll -motion theme

  1. go-to the online store
  2. theme > actions > edit code
  3. go to theme. liquid under the layout tab
  4. press cntrl+f and type to find out the head ending HTML tag
  5. paste this code just above it

{% if template contains ‘collection’ %}{{ ‘https://cdn.shopify.com/s/files/1/0382/4185/files/ajaxinate.js?937’ | script_tag }}{% endif %}

  1. go to the collection-template.liquid under the sections tab
  2. press cntrl+f and type {% for the product in the collection. products %} to find it out
  3. select this whole bunch of codes

{% for product in collection.products %}
{% include ‘product-grid-item’ %}
{% else %}

{{ 'collections.general.no_matches' | t }}

{% endfor %}

{% if paginate.pages > 1 %}
{% include ‘pagination’ %}
{% endif %}

  1. replace it with
{% for product in collection.products %} {% include 'product-grid-item' %} {% else %}

{{ 'collections.general.no_matches' | t }}

{% endfor %}
{% if paginate.next %} Loading More {% endif %}

{% comment %}
{% if paginate.pages > 1 %}
{% include ‘pagination’ %}
{% endif %}
{% endcomment %}

  1. press cntrl+f and type {% schema %} to find it

  2. paste this code just above it

  1. lastly, go to theme editor > theme settings > animations > remove the checkbox from Animate images

That’s it

Thanks

2 Likes

@zahin Amazing, thank you so much. I greatly appreciate it. Very helpful and insightful. I am one who loves to learn like you. If interested, I have around 10 additional page.section blocks I have hardcoded into the motion theme over time. I can share it with you if interested. You can preview some of the section blocks on my portfolio, reidwithrow.com. As you can see from the screenshot below, I built the entire portfolio with 0 third-party applications.

@KetanKumar Awesome! Thank you so much. Worked perfectly. I appreciate a good human being like yourself.