How to get the list of products in a current collection page????

Topic summary

A developer seeks help retrieving only the products displayed on the current page of a paginated collection (e.g., 20 products on page 1, next 20 on page 2). The goal is to implement schema markup that includes position, product name, and URL for items visible on each specific page.

Key Technical Question:

  • Why does {% for product in collection.products %} only fetch 50 products instead of all products in a collection?
  • How to limit the loop to products on the current paginated page only?

Responses:

  • One user suggests hiring a developer for custom code (2-3 hours estimated)
  • Another mentions using pagination to access up to 1,000 products in a collection

Status: The question remains unresolved with no concrete implementation guidance provided yet.

Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

Hi ,

Can anyone help me with getting the list of products in a current collection page? i.e; If the collection page displays 20 products in the first page I need to get the list of those 20 products.The next 20 products will be in the second paginated page.

This is for the purpose of schema in paginated collections. I want to return the position,product name and product url in the schema .I couldn’t manage to get the list for only current page.

Any suggestions would be greatly appreciated.

Thanks in advance.

Hi @milu_balan
This could be done using custom code.
It will take 2-3 Hours.

You have to hire a shopify developer for this task

I can do this for you. Please contact me.

Hi @Dbuglabpvtltd

I’m a developer but not a pro ! Just a beginner .It would be appreciable if you could suggest a possible way for tackling this as the community discussion is for helping each others!

Also I would like to add up a doubt of mine in this thread:

{% for product in collection.products %}

/* code*/

{% endfor %}

Why is it the above code fetches only the 50 products in a collection? Is there any liquid variable for fetching all the products in a particular collection?

Thanks

Milu

You can use pagination to get the 1000 products of a collection