Added class for available on backorder.

This commit is contained in:
rabhw 2012-03-16 16:22:39 -03:00
parent 23bc2865e6
commit 53781f13b3
1 changed files with 2 additions and 0 deletions

View File

@ -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';