Fix variation backorders
This commit is contained in:
parent
405a1eb147
commit
24761bf30e
|
@ -168,6 +168,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
|||
* Fix - Minimum coupon amount check
|
||||
* Fix - Prevent double add to cart with related products
|
||||
* Fix - Out of base tax rounding
|
||||
* Fix - Backorders for variations allow more than stock to be purchased now
|
||||
* Localization - Updated localisations
|
||||
|
||||
= 1.5.6 - 17/05/2012 =
|
||||
|
|
|
@ -351,7 +351,7 @@ if ( ! function_exists( 'woocommerce_variable_add_to_cart' ) ) {
|
|||
'availability_html' => $availability_html,
|
||||
'sku' => __( 'SKU:', 'woocommerce' ) . ' ' . $variation->sku,
|
||||
'min_qty' => 1,
|
||||
'max_qty' => $variation->stock,
|
||||
'max_qty' => $product->backorders_allowed() ? '' : $variation->stock,
|
||||
'is_downloadable' => $variation->is_downloadable() ,
|
||||
'is_virtual' => $variation->is_virtual(),
|
||||
'is_sold_individually' => $variation->is_sold_individually() ? 'yes' : 'no',
|
||||
|
|
Loading…
Reference in New Issue