diff --git a/classes/Product.php b/classes/Product.php index f7b1715a1..ca3082963 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -244,7 +244,7 @@ class ProductCore extends ObjectModel 'multilang' => true, 'multilang_shop' => true, 'fields' => array( - // Classic fields + /* Classic fields */ 'id_shop_default' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'id_manufacturer' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'id_supplier' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), @@ -2604,7 +2604,8 @@ class ProductCore extends ObjectModel if (is_array($result) && (!$specific_price || !$specific_price['id_product_attribute'] || $specific_price['price'] < 0)) { $attribute_price = Tools::convertPrice($result['attribute_price'] !== null ? (float)$result['attribute_price'] : 0, $id_currency); - if ($id_product_attribute !== false && !is_null($id_product_attribute)) // If you want the default combination, please use NULL value instead + // If you want the default combination, please use NULL value instead + if ($id_product_attribute !== false) $price += $attribute_price; }