Added class for available on backorder.
This commit is contained in:
parent
23bc2865e6
commit
53781f13b3
|
@ -422,6 +422,7 @@ class WC_Product {
|
||||||
if ($this->backorders_allowed()) :
|
if ($this->backorders_allowed()) :
|
||||||
if ($this->backorders_require_notification()) :
|
if ($this->backorders_require_notification()) :
|
||||||
$availability = __('Available on backorder', 'woocommerce');
|
$availability = __('Available on backorder', 'woocommerce');
|
||||||
|
$class = 'available-on-backorder';
|
||||||
else :
|
else :
|
||||||
$availability = __('In stock', 'woocommerce');
|
$availability = __('In stock', 'woocommerce');
|
||||||
endif;
|
endif;
|
||||||
|
@ -434,6 +435,7 @@ class WC_Product {
|
||||||
else :
|
else :
|
||||||
if ($this->backorders_allowed()) :
|
if ($this->backorders_allowed()) :
|
||||||
$availability = __('Available on backorder', 'woocommerce');
|
$availability = __('Available on backorder', 'woocommerce');
|
||||||
|
$class = 'available-on-backorder';
|
||||||
else :
|
else :
|
||||||
$availability = __('Out of stock', 'woocommerce');
|
$availability = __('Out of stock', 'woocommerce');
|
||||||
$class = 'out-of-stock';
|
$class = 'out-of-stock';
|
||||||
|
|
Loading…
Reference in New Issue