From 97bdb1555f6e62abbcd11499706121a39dbe1e6d Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Fri, 8 Nov 2013 16:02:00 +0000 Subject: [PATCH] Sync only when needed --- includes/class-wc-product-variable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-product-variable.php b/includes/class-wc-product-variable.php index 8d964fdcda1..6553250b082 100644 --- a/includes/class-wc-product-variable.php +++ b/includes/class-wc-product-variable.php @@ -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