Store variation ID in transient

This commit is contained in:
Mike Jolley 2015-03-25 16:23:19 +00:00
parent c76a08aad2
commit 8cb2ca86d7
1 changed files with 6 additions and 6 deletions

View File

@ -283,14 +283,14 @@ class WC_Product_Variable extends WC_Product {
$sale_price = $tax_display_mode == 'incl' ? $variation->get_price_including_tax( 1, $sale_price ) : $variation->get_price_excluding_tax( 1, $sale_price );
}
$prices[] = $price;
$regular_prices[] = $regular_price;
$sale_prices[] = $sale_price;
$prices[ $variation_id ] = $price;
$regular_prices[ $variation_id ] = $regular_price;
$sale_prices[ $variation_id ] = $sale_price;
}
sort( $prices );
sort( $regular_prices );
sort( $sale_prices );
asort( $prices );
asort( $regular_prices );
asort( $sale_prices );
$prices_array = array(
'price' => $prices,