diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index ec7a67aff83..f8cb45a8b38 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -7,7 +7,7 @@ * Copyright (C) 2010-2013 Juanjo Menent * Copyright (C) 2012 Cedric Salvador * Copyright (C) 2013-2014 Cedric GROSS - * Copyright (C) 2013-2015 Marcos García + * Copyright (C) 2013-2016 Marcos García * Copyright (C) 2011-2014 Alexandre Spangaro * Copyright (C) 2014 Henry Florian * Copyright (C) 2014-2016 Philippe Grand @@ -4123,7 +4123,11 @@ class Product extends CommonObject $price_min = $price * (1 - ($rules[$i]->var_min_percent/100)); } - if ($price == $this->multiprices[$i] && ($price_min == $this->multiprices_min[$i])) { + //Little check to make sure the price is modified before triggering generation + $check_amount = $price == $this->multiprices[$i] && ($price_min == $this->multiprices_min[$i]); + $check_type = $baseprice == $this->multiprices_base_type[$i]; + + if ($check_amount && $check_type) { continue; }