Set price after refreshing variation costs

This commit is contained in:
Mike Jolley 2012-07-25 17:24:17 +01:00
parent b44e976320
commit fde5f594e3
1 changed files with 4 additions and 1 deletions

View File

@ -1231,7 +1231,10 @@ class WC_Product {
update_post_meta( $this->id, '_min_variation_sale_price', $this->min_variation_sale_price );
update_post_meta( $this->id, '_max_variation_sale_price', $this->max_variation_sale_price );
if ( $this->min_variation_price !== '' ) $woocommerce->clear_product_transients( $this->id );
$this->price = $this->min_variation_price;
if ( $this->min_variation_price !== '' )
$woocommerce->clear_product_transients( $this->id );
}
}