Codexshaper / laravel-woocommerce

WooCommerce Rest API for Laravel
MIT License
194 stars 57 forks source link

Product not find after update of the stock quantity to 0 #66

Open piloufaces opened 3 years ago

piloufaces commented 3 years ago

Hi,

I have an issue after the update of the quantity to 0 (out of stock).

Product:all() return the correct list but after the update of the quantity to 0 (out of stock), Product:all() is not returning the product update to 0.

The product is availble in Woocommerce console and is correctly marked 'out of stock' on the front end. I can retrieve the product based on his ID but it is missing from the list generated by product;all()

I see : If the quantity = 0, missing in the list, If the quantity is > 0 or blank, it is present in the list returned by product::all().

Any idea ?

jarno-peeters commented 3 years ago

@piloufaces @Codexshaper same issue here. After changing the stock quantity (or other product data) in WooCommerce. The changes are not reflected in my Laravel application.