From 65069481e8a34d330940545ab3e746ee4ccc9d53 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 21 Jul 2003 13:53:46 +0000 Subject: [PATCH] Gestion des , dans les prix --- htdocs/boutique/livre/livre.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/boutique/livre/livre.class.php b/htdocs/boutique/livre/livre.class.php index 686d355901a..216ed709e22 100644 --- a/htdocs/boutique/livre/livre.class.php +++ b/htdocs/boutique/livre/livre.class.php @@ -398,8 +398,8 @@ class Livre { $sql = "UPDATE ".DB_NAME_OSC.".products "; $sql .= "SET products_model = '".$this->ref."'"; $sql .= ", products_image = '".$this->image."'"; - $sql .= ", products_price = ".$this->price.""; - $sql .= ", products_weight = ".$this->price.""; + $sql .= ", products_price = ".ereg_replace(",",".",$this->price).""; + $sql .= ", products_weight = ".ereg_replace(",",".",$this->price).""; $sql .= " WHERE products_id = " . $this->oscid; @@ -466,7 +466,7 @@ class Livre { $sql = "UPDATE llx_livre "; $sql .= " SET title = '" . trim($this->titre) ."'"; $sql .= ", ref = '" . trim($this->ref) ."'"; - $sql .= ", prix = " . $this->price .""; + $sql .= ", prix = " . ereg_replace(",",".",$this->price).""; $sql .= ", annee = " . $this->annee ; $sql .= ", fk_editeur = " . $this->editeurid ; $sql .= ", description = '" . trim($this->description) ."'";