modification de la description produit
This commit is contained in:
parent
f9a2123b91
commit
bf9e1a2c2f
@ -364,7 +364,6 @@ class Commande
|
|||||||
$qty = ereg_replace(',','.',$qty);
|
$qty = ereg_replace(',','.',$qty);
|
||||||
$pu = ereg_replace(',','.',$pu);
|
$pu = ereg_replace(',','.',$pu);
|
||||||
$desc=trim($desc);
|
$desc=trim($desc);
|
||||||
$product_desc=trim($desc);
|
|
||||||
if (strlen(trim($qty))==0)
|
if (strlen(trim($qty))==0)
|
||||||
{
|
{
|
||||||
$qty=1;
|
$qty=1;
|
||||||
@ -380,7 +379,7 @@ class Commande
|
|||||||
$prod = new Product($this->db, $fk_product);
|
$prod = new Product($this->db, $fk_product);
|
||||||
if ($prod->fetch($fk_product) > 0)
|
if ($prod->fetch($fk_product) > 0)
|
||||||
{
|
{
|
||||||
$desc = $desc?$desc:$prod->libelle;
|
$desc = nl2br(stripslashes($prod->libelle));
|
||||||
$product_desc = $product_desc?$product_desc:$prod->description;
|
$product_desc = $product_desc?$product_desc:$prod->description;
|
||||||
// multiprix
|
// multiprix
|
||||||
if($conf->global->PRODUIT_MULTIPRICES == 1)
|
if($conf->global->PRODUIT_MULTIPRICES == 1)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user