fahadmahmood8/stock-locations-for-woocommerce

New woocommerce_product_get_stock_quantity filter causes error on backend product page

Closed this issue · 1 comments

$selected_stock_location_id = WC()->session->get('stock_location_selected');

throws an error because the WC Session is not available on the admin page.

Thank you, I have released another version with this fix.