> > > > t>

Интернет-магазин   напольных покрытий
Нужна
консультация?
Если у вас остались вопросы, заполните форму и наши специалисты в ближайшее время свяжутся с вами
(''); });
function hideAnotherMenu(whatPressed){ if(whatPressed == "menu_about"){ if(document.getElementById("catalog").classList.contains("in")){ document.getElementById("catalog").classList.remove("in"); } } else if(whatPressed == "catalog"){ if(document.getElementById("menu_about").classList.contains("in")){ document.getElementById("menu_about").classList.remove("in"); } } } $(document).ready(function(){ var $total_price = $("#main_menu"); $(window).scroll(function(){ if ( $(this).scrollTop() > 100 && $total_price.hasClass("default_main_menu") ){ $total_price.removeClass("default_main_menu").addClass("fixed_main_menu"); } else if($(this).scrollTop() <= 100 && $total_price.hasClass("fixed_main_menu")) { $total_price.removeClass("fixed_main_menu").addClass("default_main_menu"); } });//scroll }); BX.ready(function(){ window['trackBar5'] = new BX.Iblock.SmartFilter({'leftSlider':'left_slider_5','rightSlider':'right_slider_5','tracker':'drag_tracker_5','trackerWrap':'drag_track_5','minInputId':'arrFilter_5_MIN','maxInputId':'arrFilter_5_MAX','minPrice':'1190','maxPrice':'2690','curMinPrice':'','curMaxPrice':'','fltMinPrice':'1190','fltMaxPrice':'2690','precision':'0','colorUnavailableActive':'colorUnavailableActive_5','colorAvailableActive':'colorAvailableActive_5','colorAvailableInactive':'colorAvailableInactive_5'}); }); //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); } //alert(); /*функция подсчёта*/ function countingFunc(id, filter){ var AddedGoodId = id; if(filter != undefined){ var full_id = id+ "_" + filter; } else if(filter == undefined){ var full_id = id; } // $.get("/local/ajax/edit_cart.php", // {action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, kol: editkol}, var sum = (document.getElementById('price_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_'+full_id).innerHTML = sum.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); var sum_old = (document.getElementById('price_old_'+full_id).value*document.getElementById('kol_'+full_id).value)+""; document.getElementById('summa_old_'+full_id).innerHTML = sum_old.replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 '); } function onButton(arg, id, filter){ if(filter == undefined){ var idToEdit = 'kol_' + id; } else if (filter != undefined){ var idToEdit = 'kol_' + id + "_" + filter; } if(arg == 'plus'){ document.getElementById(idToEdit).value++; } if(arg == 'minus' && document.getElementById(idToEdit).value > 1){ document.getElementById(idToEdit).value--; } countingFunc(id, filter); } function compare_tov_(id, price, filter) { if (filter == undefined){ var addkol = document.getElementById('kol_'+id).value; } else if (filter != undefined){ var addkol = document.getElementById('kol_'+id+"_"+filter).value; } // alert('a'); //Добавить var AddedGoodId = id; var addprice = price; $.get("/local/ajax/add_cart.php", { action: "ADD_TO_COMPARE_LIST", id: AddedGoodId, price: addprice, kol: addkol}, function(data) { $("#compare_list_count").html(data); } ); }