Skip to content

Is "deleteProductMetafield" not working? #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
IllidanMalar opened this issue May 5, 2017 · 1 comment
Open

Is "deleteProductMetafield" not working? #57

IllidanMalar opened this issue May 5, 2017 · 1 comment

Comments

@IllidanMalar
Copy link

I am trying to delete a metafield using the deleteProductMetafield function and passing (Array ([id] => 8694792272 [metafieldId] => 30289307280).

The application returns an error:

Fatal error: Uncaught exception 'GuzzleHttp\Exception\ClientException' with message 'Client error response [url] https://<shopUrl>.com/admin/products/8694792272/metafields/8694792272.json [status code] 404 [reason phrase] Not Found '....

It seems like it is passing twice the same id ... ... Am I wrong?

@chiwek
Copy link

chiwek commented May 30, 2017

Nope Illidan,

You are passing that id, first one is the product id, and second one is the metafield id. Get your parameters straight.

Together we will unleash the tides of doom...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants