Webhook not received when products reordered manually in a collection

Solved
Highlighted
Shopify Partner
9 0 1

Hi,

 

Our app got all the collections/update, products/update... webhooks registered in our customer stores. But we never received any hook when user manually reordered products in a collection with `sorted_order=manual`. Is that normal? I personally think we should receive collections/update hook because it is quite common use-case.

0 Likes
Highlighted
Shopify Staff
Shopify Staff
619 48 94

This is an accepted solution.

Hi @quyennt,

 

We don't currently have collect webhooks, which sounds like would be what you are looking for.

 

The behaviour you are seeing is expected, as the collection object itself isn't actually changing, just the collects linking the product to the collection. You would need to poll the API to get this information.

0 Likes
Highlighted
Shopify Partner
9 0 1

Hi @Busfox,

 

Thanks a lot for you answer that makes a lot of sense. However, there is another case that there is no webhook as well: when you make a bulk updates in product list page: "https://yourstore.myshopify.com/admin/products", such as making products avaialble/unavailable. Is it also expected?

 

Thanks again!

0 Likes
Highlighted
Shopify Staff
Shopify Staff
619 48 94

Hi @quyennt,

 

Changing product availability in the bulk editor is triggering product/update webhooks for me. Can you provide more information into what you are doing that is not triggering the proper webhook (and which webhook specifically you are expecting to be triggered)?

0 Likes
Highlighted
Shopify Expert
4175 29 400

When you "Poll the API",

In plain english can you explain this? I am currently listening to collections/update webhook, and when the collects are changed, nothing triggers that webhook. Also, Shopify has stated they are moving or have moved away from collects as a thing. So my question is loaded. In mid-2020, when products are added or removed from a collection, how are we supposed to recieve notice of that? What do you mean when you say POLL THE API. What are you saying exactly there?

How is polling ever a good thing? Other than in bulk operations that can take a long time, I see no excuse for this.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes