����C�
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /var/www/html/admin/productimages/clean.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/admin/productimages/clean.php:1) in /var/www/html/admin/productimages/clean.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/admin/productimages/clean.php:1) in /var/www/html/admin/productimages/clean.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/admin/productimages/clean.php:1) in /var/www/html/admin/productimages/clean.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/admin/productimages/clean.php:1) in /var/www/html/admin/productimages/clean.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/admin/productimages/clean.php:1) in /var/www/html/admin/productimages/clean.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/admin/productimages/clean.php:1) in /var/www/html/admin/productimages/clean.php on line 4
$val){
if($val==0){
unset($_SESSION['cart'][$key]);
}else{
$_SESSION['cart'][$key]['quantity']=$val;
}
}
echo "";
}
}
// Código para elinar produto del carrito
if(isset($_POST['remove_code'])){
if(!empty($_SESSION['cart']) && !empty($_POST['remove_code'])){
foreach($_POST['remove_code'] as $key => $value){
if(isset($_SESSION['cart'][$value])){
unset($_SESSION['cart'][$value]);
}
}
echo "";
echo "";
exit();
}
}
// code for insert product in order table
if(isset($_POST['ordersubmit']))
{
if(strlen($_SESSION['login'])==0)
{
header('location:login.php');
}
else{
$quantity=$_POST['quantity'];
$pdd=$_SESSION['pid'];
$value=array_combine($pdd,$quantity);
foreach($value as $qty=> $val34){
mysqli_query($con,"insert into orders(userId,productId,quantity) values('".$_SESSION['id']."','$qty','$val34')");
/////aqui manda correo////
///// Inicio
$mail = new PHPMailer(true);
$email = $_SESSION['login'];
$name = $_SESSION['username'];
try {
// Configuracion SMTP
//$mail->SMTPDebug = SMTP::DEBUG_SERVER; // Mostrar salida (Desactivar en producción)
$mail->isSMTP(); // Activar envio SMTP
$mail->Host = 'smtp.gmail.com'; // Servidor SMTP
$mail->SMTPAuth = true; // Identificacion SMTP
$mail->Username = 'mailer@fibernetve.com'; // Usuario SMTP
$mail->Password = 'egny qeaq lzpb kvnk'; // Contraseña SMTP
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
$mail->Port = 587;
// Destinatarios
$para = $email;
//$copia = 'ventas@fibernetve.com';
$mail->setFrom('mailer@fibernetve.com', 'CashNet - Tienda');
$mail->AddAddress($para); // Email y nombre del destinatario
$mail->AddCC('ventas@fibernetve.com'); // Email y nombre del destinatario
//Recibir todos los parámetros del formulario
$asunto = 'Notificación de Pedido en Shoppnet';
$mensaje = '
Estimado ' . $name . ' su pedido ha sido recibido
en la brevedad posible le enviaremos su cotización definitiva
Grand Total
|
---|
|