Update ProductCombination.class.php

This commit is contained in:
Laurent Destailleur 2021-02-26 13:24:30 +01:00 committed by GitHub
parent c0a489ec1a
commit afcc3cb3e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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