Update ProductCombination.class.php

Product dont update product variation statut when desactivate for sale.
This commit is contained in:
josemariagomezroncero 2021-02-24 23:16:46 +01:00 committed by GitHub
parent f7c119e48c
commit c0a489ec1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -487,6 +487,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;
}