Sync stock status during save

Closes #8950
This commit is contained in:
Mike Jolley 2015-08-26 13:51:49 +01:00
parent 9554fa1614
commit 4849d7d56e
3 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -3223,7 +3223,6 @@ img.help_tip {
.variations-defaults {
float: left;
select {
max-width: 20%;
margin: .25em .25em .25em 0;
}
}

View File

@ -1234,6 +1234,7 @@ class WC_Meta_Box_Product_Data {
if ( 'variable' == $product_type ) {
// Update parent if variable so price sorting works and stays in sync with the cheapest child
WC_Product_Variable::sync( $post_id );
// WC_Product_Variable::sync_stock_status( $post_id );
}
// Update version after saving