product/update webhook not firing when editing price

Solved
lucas-p
Excursionist
13 0 4

Hey, we subscribe to the product/update webhook.

For an unknown reason, one of our users doesn't trigger it when he edits its variants prices but it works when he edits its product title.

Does it happen to you as well? Is there something I'm missing?

Accepted Solution (1)

Accepted Solutions
L_J_K
Shopify Staff
Shopify Staff
400 64 81

This is an accepted solution.

Hi all,

Shopify's API Support here with an update. A fix to resolve this has now shipped to production and this would be resolved.

On the product page, the product/update webhook is firing when editing the price. Additionally, editing the quantity on the product page had been reported as not firing the product/update hook - this is also resolved.

Appreciate everyone's patience whilst we've been working on this! Hope this helps - thanks!

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!

View solution in original post

Replies 35 (35)
L_J_K
Shopify Staff
Shopify Staff
400 64 81

Hey @lucas-p 

I've been testing this out myself too on the latest version of the API 2021-04. The products/update hook was triggered when I edited a Product Variant's price.

This same hook was also triggered when I edited the corresponding Product's Title.  Perhaps re-registering the products/update webhook against the latest version of the API could help - seemed to be working as expected for me.

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
boudreaux31
New Member
2 0 1

I am seeing this as well for our app, with subscriptions version 2021-01 and 2021-04. Updating title fires the product/update event, but updating price only does not. 

boudreaux31
New Member
2 0 1

We were just able to trace the issue to the fact that Shopify fires the product/update event when editing a variant price from the admin screen /admin/products/{productId}/variants/{variantId} but does NOT fire the product/update event when editing the variant price from the admin screen /admin/products/{productId}

ian_l
Shopify Partner
32 0 1

I think boudreaux31 is right.

@L_J_K can you kindly verify boudreaux31's scenario and expedite the fix if proven true.

Thanks.

Bundle Kit enables businesses to easily build product kits, sync inventory of bundle and bundled products sold, and fulfill bundle orders.
L_J_K
Shopify Staff
Shopify Staff
400 64 81

Nice catch @boudreaux31 - thanks for raising this!

Hey @ian_l  I've been doing some testing in prod and investigating the logs -  indeed - I would be expectant that products/update would be firing in this scenario. 

The Development team is currently investigating this. I'll be sure to circle back here with future updates - please bear with me. 

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
lucas-p
Excursionist
13 0 4

That's exactly the scenario we have too on our webhooks.

Thanks, @boudreaux31 @L_J_K !

codyb13
Excursionist
15 0 4

Hi @L_J_K - it appears this is also an issue when updating prices via CSV

AppsBySimple
Shopify Partner
10 0 1

Hi @L_J_K, When you are ready please share ETA on this fix. Our app is heavily reliant on price update webhook.

patryk-omnipack
New Member
1 0 2

We created table what changes (with source of action - page) are now tracked by products/update event and we compared it with invoke inventory_items/update event.

PagePanelPropertyCalls on PRODUCTS_UPDATECalls on INVENTORY_ITEMS_UPDATE
product detailsheadertitleyesno
  descriptionyesno
 mediaaddyesno
  removeyesno
 variantsaddyesno
  removeyesno
  add optionnono
  edit optionnono
  remove optionnono
  edit pricenono
  edit quantityyesno
  edit skunoyes
 product statusedityesno
 inventroryedit Inventory managed bynono
  edit SKUnoyes
  edit barcodeno 
  edit Track quantitynoyes
variant detailsoptionsedit optionyesno
 pricingedit priceyesno
  edit compare at priceyesno
  edit cost per itemyesyes
  edit charge tax on this variantyesno
 inventoryedit managed byyesno
  edit skuyesyes
  edit barcodeyesno
  edit track quantityyesyes
  edit Continue selling when out of stockyesno
 shippingedit This is physical productyesyes
  edit weightyesno
  edit Country/Region of originyesyes
 footerdelete variantyesyes

We are expecting that every action in our table invoke products/update, also sku and barcode edition, @L_J_K we are right?

 

alligator1
New Member
1 0 1

I have the same experience as above:

  1. When editing barcode on product details page in section inventory (without variants) -> neither webhook (PRODUCTS_UPDATE nor INVENTORY_ITEMS_UPDATE) was called. It works only when I have the product with variants and I change the barcode on the variant details page.
  2. No webhook is ever called when editing product variant options.

😕

EddyChung
Shopify Partner
63 1 25

Thank you @boudreaux31 for explaining this! I also have this problem, thought I was going crazy. 

codyb13
Excursionist
15 0 4

Hi @L_J_K -- any updates here? 

L_J_K
Shopify Staff
Shopify Staff
400 64 81

 Hey @codyb13 

No further updates here at present - any update will be shared the moment it arises, for sure. Thanks for the patience all whilst we are resolving this. Please bear with us!

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
Sturla
Tourist
3 0 0

Hi, we are having the same problem, is some news of this issue resolving? 

lucas-p
Excursionist
13 0 4

I know you are hard-working on that but it's really critical for us.

As we are generating checkouts based on the price we fetch from the API, it can lead to wrong order prices.

natashadisante
Shopify Partner
126 0 13

Hi @lucas-p 

This is happening to us as well. But only for products that have one variant. If you update the variant information (e.g., price field) you'll get no webhook. If the product has at least 2 variants you'll get the hook to fire. We informed Shopify of this over two weeks ago. They have confirmed that there is a bug on their end and that their engineers are looking into it. We are waiting on an update on this still.

Anto_S
Shopify Partner
114 4 16

FWIW, We'd like to add that API updates to products are occasionally not triggering the product/update webhook.

We are running the identical jest test (no changes in code), and they occasionally fail to trigger the webhook .

Automating Commerce at Comstack.co
L_J_K
Shopify Staff
Shopify Staff
400 64 81

This is an accepted solution.

Hi all,

Shopify's API Support here with an update. A fix to resolve this has now shipped to production and this would be resolved.

On the product page, the product/update webhook is firing when editing the price. Additionally, editing the quantity on the product page had been reported as not firing the product/update hook - this is also resolved.

Appreciate everyone's patience whilst we've been working on this! Hope this helps - thanks!

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
codyb13
Excursionist
15 0 4
Thanks so much, Luke! Can we also confirm the webhook is firing when
uploading a CSV with product edits?

Thank you,
Cody