MonedaCliente(); $customers = $stock->TraeCustomer(); if($_GET[vaciar]=="all"){ $result = "DELETE FROM stock_egresos_temp_cliente where cliente_id='".$_SESSION[SESSION_CLIENTE][customer_id]."'"; $query_del = mysqli_query($db,$result); if ($query_del){ $exito_mensaje="Carrito Borrado"; }else{ $error_mensaje="Error de borrado"; } } if($_POST[modify]=="true"){ $campo_cantidad = "cantidad".$_GET[id_art]; $cantidade = $_POST[$campo_cantidad]; $campo_articulo_id = "articulo_id".$_GET[id_art]; $articulo_id = $_POST[$campo_articulo_id]; $campo_precios = "precios".$_GET[id_art]; $precios = $_POST[$campo_precios]; $chars = array("-", "+", "=", "_", "/", "?", "d", "$", "%", "^", "&", "*", "@", "�", "|", "<", ">", "{", "}", "[", "]", "(", ")","A","B","C","D","E","F","G","H","I","F","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"); $newquan = str_replace($chars,"",$cantidade); //verificar stock en base a presupuesto o pedido $contem = $stock->TraeArticuloCliente($articulo_id); $stock_real = $contem[stock_real]; if($stock_real < $newquan) { $error_mensaje="Stock menor a su pedido"; }else{ // fin verificar $total = $precios * $newquan; $sql = "UPDATE stock_egresos_temp_cliente SET cantidad='$newquan', total='$total' WHERE id='".$_GET[id_art]."'"; $update = mysqli_query($db,$sql); if ($update ){ $exito_mensaje="Cantidad actualizada correctamente"; }else{ $error_mensaje="Error de cargado"; } } } if($_GET[delete]==true){ $result = "DELETE FROM stock_egresos_temp_cliente WHERE id='".$_GET[id]."'"; $query_del = mysqli_query($db,$result); if ($query_del){ $exito_mensaje="Producto Borrado"; }else{ $error_mensaje="Error de borrado"; } } include("header_carrito.inc.php");?>
Error:
Exito!
TraeArticuloCliente($row[articulo_id]); $articulo_id = $row[articulo_id]; $descripcion = substr($contem[descripcion],0,100); $iva = $contem['iva']; $PrecioIva = $precios + ($precios*$iva/100); $PrecioIva = sprintf("%.2f", $PrecioIva); $SubtotalIva = $subtotal + ($subtotal*$iva/100); $SubtotalIva = sprintf("%.2f", $SubtotalIva ); if($monedas["codigo"]=="DOL"){ $PrecioIva = $PrecioIva/$dolar; $PrecioIva = sprintf("%.2f", $PrecioIva); $SubtotalIva = $SubtotalIva/$dolar; $SubtotalIva = sprintf("%.2f", $SubtotalIva); $Precio = $precios/$dolar; $Precio = sprintf("%.2f", $Precio); } ?>
Nombre del Producto Precio Iva Precio/Iva Cantidad Subtotal
%

Forma de Pago y Envio

 

prod_total_cliente($_SESSION[SESSION_CLIENTE][id_stock],$_SESSION[SESSION_CLIENTE][customer_id],$dolar); ?>
Subtotal:
Total
TraePuntos($totales[prod_total]); if( ($premiopuntos[puntos_activo]=="Y") AND ($premiopuntos[puntos_standby]=="N") ){ ?>
Puntos a sumar:
Finalizar Compra Imprimir Presupuesto


Carrito Vacio