Sync only when needed

This commit is contained in:
Mike Jolley 2013-11-08 16:02:00 +00:00
parent 47fc9b2922
commit 97bdb1555f
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ class WC_Product_Variable extends WC_Product {
public function get_price_html( $price = '' ) {
// Ensure variation prices are synced with variations
//if ( $this->get_variation_price( 'min' ) === '' || $this->get_price() === '' )
if ( $this->get_variation_price( 'min' ) === '' || $this->get_price() === '' )
$this->variable_product_sync( $this->id );
// Get the price