Open markhsiaowork opened 3 years ago
Did you ever find a solution to this?
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.