Sort by Best Selling, Shopify collections

Robert_Blankens
Shopify Partner
18 0 1

I was wondering if any of guys and gals have heard about updates on sorting products by Best Selling via the API? 

Here is a closed thread that contains more info: https://ecommerce.shopify.com/c/shopify-apis-and-technology/t/sort-by-best-selling-products-202802#c...

 

Just spitballing, but it might be interesting if the products by collection API endpoint just returned the products in the correct order. This is the endpoint that I'm talking about: 

https://shop-uuid.myshopify.com/admin/products.json?collection_id=32761281
# Currently returns an unsorted list of products in the #32761281 collection
# What if it instead returned the products already sorted?

Or perhaps, one could set a "sorted" parameter, eg,

https://shop-uuid.myshopify.com/admin/products.json?collection_id=32761281&sorted=true
# What if there was an &sorted param that did the sorting for you.

 

Devleloper for ShopPad, the beautiful Mobile Ecommerce solution for phone and tablet; http://theshoppad.com
Robert_Blankens
Shopify Partner
18 0 1

Totally — thanks for the reply Shayne.

Devleloper for ShopPad, the beautiful Mobile Ecommerce solution for phone and tablet; http://theshoppad.com
0 Likes
rickydazla
Shopify Expert
690 0 73

I was googling a solution for this today, I'm glad someone else has already asked the question, wondering if a solution has been found?

I'm a million different people
0 Likes
vertalm
New Member
3 0 0
collectionByHandle(handle: "{$collectionHandle}") {
title
productsCount
products(first: {$steps}) {
edges {
cursor
node {
title
id
}
}
}
}
0 Likes