core/api/modules/cart/mod.js

55 lines
1.8 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

$(".change-kolvo").keyup(function(event){
var id=$(this).data('id');
var kolvo=$(this).val();
$.ajax({
type:"POST",
url:'/act/cart',
data:"act=change-kolvo&kolvo=" + kolvo + "&id=" + id,
success:function(data){$("#summ").text(data)}
});
})
/* ----------------------------------------------------------------------
06.03.2023
Простое оформление заказа на зарегистрированного физ лица
---------------------------------------------------------------------- */
$( "#btn-zakaz-fz" ).click( function( event ){
$.ajax({
type:"POST",
url:'/act/cart',
data:"act=zakazFz",
success:function(data){ }
});
$("#alert-zakaz-ok").removeClass('hidden');
$(".table").addClass('hidden');
return false;
})
/* ----------------------------------------------------------------------
06.03.2023
Простое оформление заказа на НЕ зарегистрированного физ лица
---------------------------------------------------------------------- */
$("#order-fio").val(localStorage.getItem('fio'));
$("#order-tel").val(localStorage.getItem('tel'));
$("#order-email").val(localStorage.getItem('email'));
$( "#btn-zakaz-fz-anonim" ).click( function( event ){
var fio = $("#order-fio").val();
var tel = $("#order-tel").val();
var email = $("#order-email").val();
localStorage.setItem('fio', fio);
localStorage.setItem('tel', tel);
localStorage.setItem('email', email);
$.ajax({
type:"POST",
url:'/act/cart',
data:"act=zakazFzAnonim&fio=" + fio + "&tel=" + tel + "&email=" + email,
success:function(data){ }
});
$("#alert-zakaz-ok").removeClass('hidden');
$(".table").addClass('hidden');
return false;
})