From 53781f13b384fed265a49d56ccf6ddc0939ae50d Mon Sep 17 00:00:00 2001 From: rabhw Date: Fri, 16 Mar 2012 16:22:39 -0300 Subject: [PATCH] Added class for available on backorder. --- classes/class-wc-product.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/class-wc-product.php b/classes/class-wc-product.php index 220e6694d85..45e89f41ae7 100644 --- a/classes/class-wc-product.php +++ b/classes/class-wc-product.php @@ -422,6 +422,7 @@ class WC_Product { if ($this->backorders_allowed()) : if ($this->backorders_require_notification()) : $availability = __('Available on backorder', 'woocommerce'); + $class = 'available-on-backorder'; else : $availability = __('In stock', 'woocommerce'); endif; @@ -434,6 +435,7 @@ class WC_Product { else : if ($this->backorders_allowed()) : $availability = __('Available on backorder', 'woocommerce'); + $class = 'available-on-backorder'; else : $availability = __('Out of stock', 'woocommerce'); $class = 'out-of-stock';