Middleware - Product Updates - Many Stores

Hi there,

We have developed a middleware that syncs updates based on the barcode (title, descriptions, prices, image sources, etc.) across every developed store that has a product with the same barcode. However, we have identified that it is not working with a specific store, and we don’t know why the information is not updating.

More details are attached. Could someone help us identify what might be happening here?


Hi there

It’s hard to see based off your screenshots, what excatly you are doing. It simply looks like no variant with said barcode exists on the second screenshot (assume it’s the problem store).

  • Did you check if this variant exists in the admin dashboard?
  • If variant should have been created by API; what was the API userErrors?

Hi there!

I’m adding more context:

  1. We have already created the products across all stores, and we have ensured that these products contain the same barcode that we are trying to search for using the query I shared earlier.
  2. The issue is that we are using the same query for every store, but with this specific one, it’s not working.
  3. API Error: We are not receiving any error messages, even though the calls return empty responses.

I hope it helps, thank you in advanced,

Hi @Triciclo_Admin,

I didnt test anything yet, but looking at your screenshot it seems you’re searching for a Variant Barcode value, but you’ve put it into the Vendor field on the Product resource?

Can you double check that the data is correct in the admin?

1 Like

My bad, they use the same value for vendor", Here the details, the bar code is the same we are calling, hope It helps:

is it possible that product or variant not active status?

1 Like

Can you try with this syntax? That works for me.

query barcodeVariants {
  productVariants(first: 10, query: "barcode:'5706957011988'") {
    nodes {
      title
      barcode
    }
  }
}

Notable changes is that we wrap the barcode itself in a single quote (inside your current double qoutes that wrap the full query).

Not quite sure why, as the docs only uses this syntax when utilizing comparators. But I had to add it for the barcode query to work.

Anchor

1 Like