PMP available only if stock module enabled

This commit is contained in:
Maxime Kohlhaas 2016-06-03 23:49:34 +02:00
parent d20d88e1af
commit 8b0b3b1a9d

View File

@ -125,9 +125,11 @@ if ($idprod > 0)
} }
} }
// Add price for pmp if(!empty($conf->stock->enabled)) {
$price=$producttmp->pmp; // Add price for pmp
$prices[] = array("id" => 'pmpprice', "price" => $price, "label" => $langs->trans("PMPValueShort").': '.price($price,0,$langs,0,0,-1,$conf->currency), "title" => $langs->trans("PMPValueShort").': '.price($price,0,$langs,0,0,-1,$conf->currency)); $price=$producttmp->pmp;
$prices[] = array("id" => 'pmpprice', "price" => $price, "label" => $langs->trans("PMPValueShort").': '.price($price,0,$langs,0,0,-1,$conf->currency), "title" => $langs->trans("PMPValueShort").': '.price($price,0,$langs,0,0,-1,$conf->currency));
}
} }
echo json_encode($prices); echo json_encode($prices);