use helpers
This commit is contained in:
parent
6201c7e22b
commit
1b268d2f63
|
@ -251,8 +251,8 @@ class WC_Product_Variable extends WC_Product {
|
|||
'display_price' => wc_get_price_to_display( $variation ),
|
||||
'display_regular_price' => wc_get_price_to_display( $variation, array( 'price' => $variation->get_regular_price() ) ),
|
||||
'dimensions' => wc_format_dimensions( $variation->get_dimensions( false ) ),
|
||||
'min_qty' => 1,
|
||||
'max_qty' => $variation->backorders_allowed() ? '' : $variation->get_stock_quantity(),
|
||||
'min_qty' => $variation->get_min_purchase_quantity(),
|
||||
'max_qty' => $variation->get_max_purchase_quantity(),
|
||||
'backorders_allowed' => $variation->backorders_allowed(),
|
||||
'is_in_stock' => $variation->is_in_stock(),
|
||||
'is_downloadable' => $variation->is_downloadable(),
|
||||
|
|
Loading…
Reference in New Issue