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,10 +125,12 @@ if ($idprod > 0)
} }
} }
if(!empty($conf->stock->enabled)) {
// Add price for pmp // Add price for pmp
$price=$producttmp->pmp; $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)); $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);