Merge pull request #19286 from BadPixxel/patch-7
FIX: Status propagation from Parent Product
This commit is contained in:
commit
44b129f754
@ -488,7 +488,13 @@ class ProductCombination
|
||||
|
||||
$child->price_autogen = $parent->price_autogen;
|
||||
$child->weight = $parent->weight;
|
||||
$child->status = $parent->status;
|
||||
// Only when Parent Status are updated
|
||||
if ($parent->oldcopy && ($parent->status != $parent->oldcopy->status)) {
|
||||
$child->status = $parent->status;
|
||||
}
|
||||
if ($parent->oldcopy && ($parent->status_buy != $parent->oldcopy->status_buy)) {
|
||||
$child->status_buy = $parent->status_buy;
|
||||
}
|
||||
|
||||
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