Re: The product/update webhook doesn't trigger with metafields

The product/update webhook doesn't trigger with metafields

Algolia_Team
Shopify Partner
6 0 5

Hi there,

Metafields updates or insertions in a product or a variant should trigger the product/update webhook, according to this post . It's however not the case. I have a simple reproduction process:

ShopifyAPI::Webhook.find(157612421);
# Returns
<ShopifyAPI::Webhook:0x00000006c24c18
 @attributes=
  {"id"=>157612421,
   "address"=>"https://myapp.com/webhooks/products/update",
   "topic"=>"products/update",
   "created_at"=>"2016-01-20T04:06:08-05:00",
   "updated_at"=>"2016-01-29T02:12:51-05:00",
   "format"=>"json",
   "fields"=>[],
   "metafield_namespaces"=>["color"]},
 @persisted=true,
 @prefix_options={}>

Alright, so here, we see that the webhook is up and running. I've even set metafield_namespaces even if it shouldn't matter.

Then let's fiddle around.

p = ShopifyAPI::Product.first
p.title = "#{p.title}."
p.save
v = ShopifyAPI::Product.first.variants.first
v.title = "#{v.title}."
v.save

Both correctly trigger the webhook.

However, let's try to play with metafields:

p = ShopifyAPI::Product.first
m = ShopifyAPI::Metafield.new(namespace: 'color', key: 'color1', value: 'red', value_type: 'string')
p.add_metafield(m)
v = ShopifyAPI::Product.first.variants.first
m = ShopifyAPI::Metafield.new(namespace: 'color', key: 'color1', value: 'red', value_type: 'string')
v.add_metafield(m)

Both correctly update their target with the correct metafield, however, the webhook is never triggered.

Our application needs to be constantly up-to-date with the store. This is a deal-breaker for us because this means our app is currently almost unusable. We have stores that have ~150K variants, so we can't afford to just trigger a full reindexing (it takes between 20 and 40 hours with the rate-limiting!).

Can your dev team please have a look at this? As stated in the introduction, it seems like it worked correctly before and a regression was introduced since at least 7 months.

Best,

Replies 5 (5)

Martijn_Spronk
Shopify Partner
9 0 3

Any update on this? I just ran into the same limitation.

Casper2
Shopify Partner
10 0 0

This is not working for me either. The original post was simply closed without further comments from the developers.

Will you please respond on whether this will be reintroduced or not!

 

Thanks in advance.

Julien_Heller
Shopify Partner
17 0 1

Bump. Shopify, please respond.

PaulNewton
Shopify Partner
6464 588 1373

@Julien Heller ,et. al  use support@shopify.com if a response is needed, no such guarantee on the forum

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


Lisa_Ugray1
Shopify Staff (Retired)
10 0 0