Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: Can't execute the UpdateOperation on cart.

Solved

Can't execute the UpdateOperation on cart.

Wakil_eFoli
Shopify Partner
47 2 6

I was trying to update the price of a cartline using the UpdateOperation.
To do that I've created the app and the extension and deployed the app. App when I check the output(STDOUT) I see the result as expected but meanwhile I'm getting an error:

Input:

Wakil_eFoli_0-1699877666344.png

 

 

Error

 

[
  {
    "path": [
      "operations",
      0,
      "update",
      "price"
    ],
    "explanation": "Field is not defined on UpdateOperation"
  }
]



Can someone point out where the problem is? Thanks!  

 

Accepted Solution (1)

Wakil_eFoli
Shopify Partner
47 2 6

This is an accepted solution.

Its working after I've added the the following to shopify.extension.toml file

api_version = "unstable"

View solution in original post

Reply 1 (1)

Wakil_eFoli
Shopify Partner
47 2 6

This is an accepted solution.

Its working after I've added the the following to shopify.extension.toml file

api_version = "unstable"