Merge pull request #12005 from ttarpinyan/fix-issue-12004

fix issue 12004 (sales price does not automatically revert to regular…
This commit is contained in:
Claudio Sanches 2016-10-04 12:07:20 -03:00 committed by GitHub
commit 8f7816a8e4
1 changed files with 3 additions and 0 deletions

View File

@ -434,6 +434,9 @@ function wc_scheduled_sales() {
// Sync parent
if ( $parent ) {
// Clear prices transient for variable products.
delete_transient( 'wc_var_prices_' . $parent );
// Grouped products need syncing via a function
$this_product = wc_get_product( $product_id );
if ( $this_product->is_type( 'simple' ) ) {