Fix: le prix de base en mode multiprix n'était plus mis à jour
This commit is contained in:
parent
021860ebfe
commit
5e1c78ddd0
@ -64,6 +64,14 @@ if ($_POST["action"] == 'update_price' &&
|
|||||||
for($i=1;$i<=$conf->global->PRODUIT_MULTIPRICES_LIMIT;$i++)
|
for($i=1;$i<=$conf->global->PRODUIT_MULTIPRICES_LIMIT;$i++)
|
||||||
{
|
{
|
||||||
if($_POST["price_".$i])
|
if($_POST["price_".$i])
|
||||||
|
{
|
||||||
|
// le prix 1 est considéré comme le prix de base du produit
|
||||||
|
if ($i == 1)
|
||||||
|
{
|
||||||
|
$newprice=price2num($_POST["price_".$i],'MU');
|
||||||
|
$newpricebase=$_POST["multiprices_base_type_".$i];
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
if ($_POST["multiprices_base_type_".$i] == 'TTC')
|
if ($_POST["multiprices_base_type_".$i] == 'TTC')
|
||||||
{
|
{
|
||||||
@ -81,6 +89,7 @@ if ($_POST["action"] == 'update_price' &&
|
|||||||
$product->multiprices_ttc["$i"] = $price_ttc;
|
$product->multiprices_ttc["$i"] = $price_ttc;
|
||||||
$product->multiprices_base_type["$i"] = $_POST["multiprices_base_type_".$i];
|
$product->multiprices_base_type["$i"] = $_POST["multiprices_base_type_".$i];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$product->multiprices["$i"] = "";
|
$product->multiprices["$i"] = "";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user