Skip to content
Discussion options

You must be logged in to vote

I suspect what you are actually are trying to create is a pagination for each product you have. You can do this by creating a collection for your products, then loop that collection adding a hand crafted pagination array excluding the current product.

You're right. You can see the image I've posted. But creating a collection for my products using addCollections() API is not going to work for my use case.

Not 100% sure what you mean by the order of execution is unpredictable. Can you elaborate?

.addCollection() is definitely the right API to create a new collection. A collections is just an array of objects with information about the current page in the collection. You can sort those ob…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@vhbui02
Comment options

Comment options

You must be logged in to vote
2 replies
@dwkns
Comment options

@vhbui02
Comment options

Answer selected by vhbui02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants