Hello there,
I try to sort the products in a collection with a script, but I don’t get it.
A collect is an object that has been assigned to a collection, or am I wrong here? So at first, I check my Collection for all products
Get all the Products of Collection with:
https://some_shop_name.myshopify.com/admin/api/2023-04/collections/123456789/products.json
Result:
{ “products”: [ { “id”: Product_ID, “title”: “Some nice Product”,…
After that, i try so search for the collect with the product ID from collection, but the result is empty
https://some_shop_name.myshopify.com/admin/api/2023-04/collects.json?product_id={Product_ID}
Result:
{“collects”:}
So what do I have to do to re-sort all products of a collection?
Thanks for helping out