I need some code to reverse the page order of a collection.
Page 1 becomes page 10
Page 2 becomes page 9
…
Page 9 becomes page 2
Page 10 become page 1
Is it possible?
I need some code to reverse the page order of a collection.
Page 1 becomes page 10
Page 2 becomes page 9
…
Page 9 becomes page 2
Page 10 become page 1
Is it possible?
Hi @FurtherRecords , it’s Layoutbase here.
We would like to provide you with our thoughts on your question.
You can set the sort by default in each collection. It doesn’t require any code here.
1. Go to Products → Collections → select the collection that you would like to do it.
2. Select the type sort in the product section. You can check the screenshot.
Hope you find our suggestion helpful.
Best regards,
Layoutbase
Please let us know if you find it helpful by giving us a LIKE and Mark as Solution.
Layoutbase is a leading Shopify page builder. Give us a try HERE!
Thanks, but that won’t work. None of the sort options are what I need.
I need “date added to the collection”. It’s a “back in stock” collection, so the items could be created/published at any date. The current manual order is exactly the opposite of what I need. Item #1 should be the last item on the final page. Item #500 should be the first item on the first page. With the current order being the exact opposite of what I need I just need to reverse the sort order of the entire list - but reverse filter only applies per page so I also need to reverse the page order as well to make it work.
Hi @FurtherRecords ,
You can only use “sort by” to achieve the desired display, no other ways can meet the same goal. You may try to use external apps to do it.
Best regards,
Layoutbase
Please let us know if you find it helpful by giving us a LIKE and Mark as Solution.
Layoutbase is a leading Shopify page builder. Give us a try HERE!