question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Product List Pagination

See original GitHub issue

I’m having a hard time converting my old code using page to the next pointer for pagination. I would really appreciate your help. Simplified code:

const shopify = new Shopify({
	shopName: req.session.shop,
	accessToken: req.session.access_token,
	apiVersion: '2019-10'
});
shopify.product.list({ limit: 10, page: 2, collection_id: collection_id, fields:'id,title,image,variants,vendor'})
	.then((products) => { 
		console.log(products);
	})
	.catch(err => {
		console.log(err);
		
	}
);

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
bluedgecommented, Mar 6, 2020

Thank you I though ‘2019-10’ already had this., thx. Just so I learn something, why a classic callback won’t catch the new params?

0reactions
bluedgecommented, Mar 7, 2020

Changing the API date to ‘2020-01’ was really the trick. Thank you so much for the guidance and code example.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Alternatives to Pagination on Product-Listing Pages
Traditional pagination involves splitting a list of items into multiple pages, each containing a fixed number of items. To see more options, ...
Read more >
JetWooBuilder Product Pagination Widget - Crocoblock
Product Pagination is a useful tool in case you want to add pagination to the Shop Products easily and style it up according...
Read more >
Building a blazing fast product list with pagination ... - ITNEXT
In this tutorial we are going to create a Gatsby site with two pages. The home page with an introduction about the store...
Read more >
Product Pagination - The Plus Addons for Elementor
Power packed widget for WooComerce based product listing, which all all listing options with tons of customisation options. It can be display your...
Read more >
Paginate Collection lists - Webflow University
Display more than 100 collection Items from your collection in a single collection list · Display fewer collection items per page so the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found