Post by jokermanx » Thu Jun 11, 2015 12:25 am

Well, i am trying to end wia email sizes of some produst from user to admin
first i am adding inputs and jS/JQ code to my product.
In my JQ code i am sending data, its tested and works
if($.isNumeric($(".telephone").val())){
str = "http://probasait.esy.es/?route=informat ... y="+"Новый заказ. Ширина: "+ $(".ancho").val() +
"мм. Вышина: "+ $(".alto").val() +"мм. Цена: "+$(".total").html()+". Телефон: "+ $(".telephone").val()+
". Коментарий пользователя: "+$(".comentariy").val();
$(".inv2").css("display","none");
$.ajax({
type: "POST",
url: str,
dataType: "json",
beforeSend: function() {
alert(str);
},
complete: function() {
},
success: function(json) {
if (json["error"]) {
alert(json["error"]);
}
if (json["success"]) {
alert( json["success"]);
}
}
});
}else{
alert("Введите правильный номер!");
}

});
}else{
alert("Вы неправильно ввели размеры");
}

As you can see i am using /?route=information/controlpost/sendmail
So as i did understand i should send it to /catalog/controller/information/controlpost.php file calling sendmail() function??
Or it dosnt work like I think?

Newbie

Posts

Joined
Thu Jun 11, 2015 12:14 am
Who is online

Users browsing this forum: No registered users and 6 guests