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
post delete put function success but it did not add delete or change product
So I am trying to add a product to my woo-commerce shop using the woocommerce-rest-api. I can successfully retrieve a list of the products using the WooCommerce.get("products") method, but when I used the post method to add a new product. It successfully give me a response (showing the list of products) but it did not add the new product.
The text was updated successfully, but these errors were encountered:
markhsiaowork
changed the title
post function success but it did not add product
post delete put function success but it did not add product
May 12, 2021
markhsiaowork
changed the title
post delete put function success but it did not add product
post delete put function success but it did not add delete or alter product
May 12, 2021
markhsiaowork
changed the title
post delete put function success but it did not add delete or alter product
post delete put function success but it did not add delete or change product
May 12, 2021
Yeah, so the problem is inside my config where
url: "https://example.com. I just put a https://(www).example.com and it worked.
Because when I submit a post request I point it to the URL example.com which will get redirect to the actual address www.example.com and every time it redirects it will change to Get request.
post delete put function success but it did not add delete or change product
So I am trying to add a product to my woo-commerce shop using the woocommerce-rest-api. I can successfully retrieve a list of the products using the WooCommerce.get("products") method, but when I used the post method to add a new product. It successfully give me a response (showing the list of products) but it did not add the new product.
The text was updated successfully, but these errors were encountered: