PMP available only if stock module enabled
This commit is contained in:
parent
d20d88e1af
commit
8b0b3b1a9d
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user