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:
commit
8f7816a8e4
|
@ -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' ) ) {
|
||||
|
|
Loading…
Reference in New Issue