WooCommerce Version: 3.8.1
Through the filter function, added a custom field to stock_status:
add_filter(
'woocommerce_product_stock_status_options',
'ec_add_custom_product_stock_status_option'
);
function ec_add_custom_product_stock_status_option ($arr) {
$arr['fororder'] = __( 'Доступно для заказа', 'woocommerce' );
return $arr;
}
Everything works well, except for the "stock_status" filter in the admin panel on the "All Products" page. It shows “No Products Found” even for the standard instock option.
For new products, and if I manually, on a new one, set the status of the balance in the product, this product will miraculously get into the filter.
I just don’t understand, maybe im can somehow update the statuses on all products?
What could be the problem?
Post a Comment