Ver Mensaje Individual
  #6 (permalink)  
Antiguo 04/04/2010, 15:06
Avatar de mauroave
mauroave
 
Fecha de Ingreso: julio-2009
Mensajes: 50
Antigüedad: 17 años, 3 meses
Puntos: 0
Respuesta: Sistema de consulta de precio completo pero con fallas

Hola acesino1, sigues teniendo erroes, por eso no puedes visualizar tus resultados:

fijate en esta parte del codigo..no utilizas las variables que recibes:

Código PHP:
$totalqty = actionqty * PRECIOACTION
+ photoqty * PRECIOPHOTO
+ flashqty * PRECIOFLASH 
deberias ponerlo asi:

Código PHP:
$totalqty = $_POST["actionqty"] * PRECIOACTION
+ $_POST["photoqty"] * PRECIOPHOTO
+ $_POST["flashqty"] * PRECIOFLASH; 
igual que en esta parte:

Código PHP:
echo "Artículos pedidos:     ".$totalqty."<br>\n";
echo 
"subtotal:     ";
echo 
number_format($totalamount, 2)." €";
echo 
"<br>\n";
$texrate = 0.10; //impuesto
$totalamount = $totalamount * (1 + $taxrate);
$totalamount = number_format($totalamount, 2)
echo 
"Total incluyendo impuestos: ".$totalamount." €<br>\n"; 
deberías cambiarla por esto:

Código PHP:
echo "Artículos pedidos:     ".$totalqty."<br>\n";
echo 
"subtotal:     ";
echo 
number_format($totalqty, 2)." €";
echo 
"<br>\n";

$texrate = 0.10; //impuesto
$totalqty = $totalqty * (1 + $taxrate);
$totalqty = number_format($totalqty, 2);
echo 
"Total incluyendo impuestos: ".$totalqty." €<br>\n"; 
creo que ahi te debería andar. Presta atención a las variables que usas!