fahadmahmood8 / stock-locations-for-woocommerce

This plugin will help you manage WooCommerce Products stocks through locations and also different traditional barcodes.
https://pt.wordpress.org/plugins/stock-locations-for-woocommerce/
GNU General Public License v3.0
22 stars 14 forks source link

_stock_status goes always to onbackorder even when product is in stock #71

Closed matthijs166 closed 3 years ago

matthijs166 commented 3 years ago

Hey there!

I love this plugin!

The problem I am having is that when a product is in stock and the backorder is allowed then de stock status is always going default to onbackorder. This needs to be instock if there is stock available. Only when there is no stock the status has to be onbackorder

This is also the default woocommerce behavior.

I have made a pull request to fix the issue. #72

alexmigf commented 3 years ago

Hi @matthijs166 thanks for your reporting! I didn't merge your code but I have fixed the issue based on it. It should be available in the next release.