You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to update products in my store. But, the put/post methods do not work at all. The requests are executed but there are no changes in the product's properties.
I gave my homepage URL as the url param, and the permalink in the wordpress is set to something like https://my-website.co.il/year/month/day/sample-post/. below is the constructor defined
wcapi = API(
url=STORE,
consumer_key=DEV,
consumer_secret=SECRET,
wp_api=True,
version="wc/v2",
query_string_auth=True
)
and here is how I update a product
wcapi.put("products/4713", data={'price':'0.15'}).json()
and then it returns the product with old price.
Actually, the product is not updated and still it does not give an error.
The text was updated successfully, but these errors were encountered:
I am trying to update products in my store. But, the put/post methods do not work at all. The requests are executed but there are no changes in the product's properties.
I gave my homepage URL as the url param, and the permalink in the wordpress is set to something like https://my-website.co.il/year/month/day/sample-post/. below is the constructor defined
wcapi = API(
url=STORE,
consumer_key=DEV,
consumer_secret=SECRET,
wp_api=True,
version="wc/v2",
query_string_auth=True
)
and here is how I update a product
wcapi.put("products/4713", data={'price':'0.15'}).json()
and then it returns the product with old price.
Actually, the product is not updated and still it does not give an error.
The text was updated successfully, but these errors were encountered: