nik0811
Forum Replies Created
-
The issue was resolved after changing the params from stock_value to value. The url was cached, hence it was not reflecting. @fahad Thanks for pointing in the right direction and prompt response.
I’m passing the variation id.
PFB screenshot
- This reply was modified 2 years, 6 months ago by nik0811.
Yes. I’m using v2.5.9.
The same api works for normal products.
I’m passing the product_id of the variation product. Do I need to pass the parent product_Id as well?Sku of the variation product is 44842.
Its Product_Id is 31772.
Product Id of parent is 31767.The url is something like this:
https://localhost:8080/wordpress/?slw-api&id=31772&stock_value=765&action=set&item=stock&format=default&product_id=31772&location_id=3434
Now after hitting this url, the stock for this particular location is being set to 0.
I tried changing the param to value from stock_value. Now I get response as 1. But still the stock is not updating.
After running the cron job for the product it says the stock updated to 0, but nothing is updated.