ShopifyExtras / PHP-Shopify-API-Wrapper

Shopify PHP (Guzzle) API Wrapper
http://www.zapiet.com/
MIT License
118 stars 68 forks source link

Is "deleteProductMetafield" not working? #57

Open IllidanMalar opened 7 years ago

IllidanMalar commented 7 years ago

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 commented 7 years ago

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...