modif multiprix : si les niveau de prix autre que le premier sont à 0.00 ils prennent par défaut la valeur du prix 1
This commit is contained in:
parent
382612ec19
commit
b9dc21e230
@ -597,6 +597,7 @@ class Product
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$this -> multiprices[1] = $this->price;
|
||||||
for($i=2;$i<=$conf->global->PRODUIT_MULTIPRICES_LIMIT;$i++)
|
for($i=2;$i<=$conf->global->PRODUIT_MULTIPRICES_LIMIT;$i++)
|
||||||
{
|
{
|
||||||
$sql= "SELECT price, tva_tx, envente ";
|
$sql= "SELECT price, tva_tx, envente ";
|
||||||
@ -609,8 +610,10 @@ class Product
|
|||||||
if ( $result )
|
if ( $result )
|
||||||
{
|
{
|
||||||
$result = $this->db->fetch_array();
|
$result = $this->db->fetch_array();
|
||||||
if($result["price"] != "")
|
if($result["price"] != "" && $result["price"] != "0.00")
|
||||||
$this -> multiprices[$i]=$result["price"];
|
$this -> multiprices[$i]=$result["price"];
|
||||||
|
else
|
||||||
|
$this -> multiprices[$i]=$this->price;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user