Merge pull request #16426 from josemariagomezroncero/patch-9
NEW Set status of all variant when setting status of parent
This commit is contained in:
commit
8aefb1b641
@ -488,6 +488,8 @@ class ProductCombination
|
||||
|
||||
$child->price_autogen = $parent->price_autogen;
|
||||
$child->weight = $parent->weight;
|
||||
$child->status = $parent->status;
|
||||
|
||||
if ($this->variation_weight) { // If we must add a delta on weight
|
||||
$child->weight = ($child->weight ? $child->weight : 0) + $this->variation_weight;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user