WooCommerce replace "Available on backorder" in cart/checkout based on product category
I wrote some code for displaying a custom backorder message on the product detail page which is based on the product category. function custom_backorder_message( $text, $product ){ if ( $product->managing_stock() && $product->is_on_backorder( 1 ) ) { if( has_term( 'bridal-line', 'product_cat'…