From fd5fb90649cfe41ae8dd9faddb182a0d040f130b Mon Sep 17 00:00:00 2001 From: Maxime Kohlhaas Date: Fri, 26 Oct 2012 01:07:11 +0200 Subject: [PATCH] Task # 559 : price defined on product page is unit price. Need to multiplicate this price by qty to have the right global price in the product list --- htdocs/core/class/html.form.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index d6824ce682e..d23a4b0b46c 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -1389,8 +1389,8 @@ class Form } else { - $opt.= price($objp->price).' '.$currencytext."/".$objp->quantity; - $outval.= price($objp->price).' '.$currencytextnoent."/".$objp->quantity; + $opt.= price($objp->price * $objp->quantity).' '.$currencytext."/".$objp->quantity; + $outval.= price($objp->price * $objp->quantity).' '.$currencytextnoent."/".$objp->quantity; $opt.= $langs->trans("Units"); // Do not use strtolower because it breaks utf8 encoding $outval.=$langs->transnoentities("Units"); }