Update ProductCombination.class.php
Product dont update product variation statut when desactivate for sale.
This commit is contained in:
parent
f7c119e48c
commit
c0a489ec1a
@ -487,6 +487,8 @@ class ProductCombination
|
|||||||
|
|
||||||
$child->price_autogen = $parent->price_autogen;
|
$child->price_autogen = $parent->price_autogen;
|
||||||
$child->weight = $parent->weight;
|
$child->weight = $parent->weight;
|
||||||
|
$child->status = $parent->status;
|
||||||
|
|
||||||
if ($this->variation_weight) { // If we must add a delta on weight
|
if ($this->variation_weight) { // If we must add a delta on weight
|
||||||
$child->weight = ($child->weight ? $child->weight : 0) + $this->variation_weight;
|
$child->weight = ($child->weight ? $child->weight : 0) + $this->variation_weight;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user