diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 94889998f26..2b6e28c55f3 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -1241,7 +1241,7 @@ class Product extends CommonObject return -1; } } - } else if (! empty($conf->global->PRODUIT_PRICE_BY_QTY)) + } else if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES_BY_QTY)) { $sql = "SELECT price, price_ttc, price_min, price_min_ttc,"; $sql.= " price_base_type, tva_tx, tosell, price_by_qty, rowid"; diff --git a/htdocs/product/price.php b/htdocs/product/price.php index 14d6600779d..390b09127e7 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -322,7 +322,7 @@ if (! empty($conf->global->PRODUIT_MULTIPRICES)) print ''; // Price by quantity - if($conf->global->PRODUIT_PRICE_BY_QTY) { + if($conf->global->PRODUIT_CUSTOMER_PRICES_BY_QTY) { print ''.$langs->trans("PriceByQuantity").' '.$i; print ''; @@ -424,7 +424,7 @@ else print ''; // Price by quantity - if($conf->global->PRODUIT_PRICE_BY_QTY) { + if($conf->global->PRODUIT_CUSTOMER_PRICES_BY_QTY) { print ''.$langs->trans("PriceByQuantity"); if($object->prices_by_qty[0] == 0) { print ' '.$langs->trans("Activate"); @@ -699,7 +699,7 @@ if ($result) { print ''.$langs->trans("MultiPriceLevelsName").''; } - if (! empty($conf->global->PRODUIT_PRICE_BY_QTY)) + if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES_BY_QTY)) { print ''.$langs->trans("Type").''; } @@ -730,7 +730,7 @@ if ($result) print ''.$objp->price_level.""; } // Price by quantity - if (! empty($conf->global->PRODUIT_PRICE_BY_QTY)) + if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES_BY_QTY)) { $type = ($objp->price_by_qty == 1) ? 'PriceByQuantity' : 'Standard'; print ''.$langs->trans($type)."";