'+result['getcart'][z]['product'][0]['name']+'
'+result['getcart'][z]['price']+' TL '+ button +'NE ARAMIŞTINIZ?
İngilizce Türkçe sözlükte arama yapmak için ise tıklayabilirsiniz.
optimist.
One who holds the opinion that all events are ordered for the best.
One who looks on the bright side of things, or takes hopeful views; opposed to pessimist. a person disposed to take a favorable view of things.
1 One who puts his shoes on when a speaker says, 'Now in conclusion ' 2 He goes into a restaurant without any money, expecting to pay for the meal with the pearl he'll find in an oyster 3 Someone who sets aside two hours to do his income tax return 4 A person who starts taking bath if he accidentally falls into a river 5 A person who while falling from Eiffel tower says in midway 'See I am not injured yet '.
A person who while falling from Eiffel tower says in midway 'See, I am not injured yet '.
A person who starts taking bath if he accidentally falls into a river.
A person who while falling from Eiffel tower says in midway 'See I am not injured yet '.
Someone who sets aside 2 hours to do his income tax return.
A person who starts taking a bath if he accidentally falls into a river. a person disposed to take a favorable view of things.
Alışveriş Sepetiniz
TOPLAM' + formatmny(pricebasket) + ' TL
'; fbq('track', 'AddToCart', {currency: "TRY", value: pricebasket}); }); } function deletecart(id, sect) { setTimeout(function () { jQuery.post("https://www.limasollunaci.com/deletecart", {id: id, _token: "fM9RB4e1Ogl2VxQOir0nBKsTE32Tp3EegdLTVTMN"}, function (result) { jQuery('#mCSB_1_container').empty(); jQuery('#total-price').empty(); // jQuery('#total-discount').empty(); var total = 0; $("#li" + id).remove(); for (var z = 0; z < result['getcart'].length; z++) { result['getcart'][z]['product'][0]['name'] = (result['getcart'][z]['product'][0]['name']).replace(/'/g, ''); var stringprice = result['getcart'][z]['price'].toString(); var intprice = parseFloat(stringprice.replace('.', "").replace(',', '.')); total += intprice * parseInt(result['getcart'][z]['number']); if(result['getcart'][z]['price'] ==0) { var button = ''; } else{ var button = ''; } jQuery("#mCSB_1_container").append(''); } var pricebasket = parseFloat(total) - parseFloat(result['totaldiscount']); var pricebasket = parseFloat(result['totalamount']) + parseFloat(result['cargo']); document.getElementById('total-price').innerHTML = 'TOPLAM' + formatmny(pricebasket) + ' TL
'; if (total == 0) { document.getElementById('sepetegit').style.display = "none"; document.getElementById('total-price').style.display = "none"; document.getElementById('cargo').style.display = "none"; } if(parseFloat(result['totaldiscount']) <= 0) { document.getElementById('total-discount').innerHTML = ""; document.getElementById('total-discount').style.display = "none"; } document.getElementById('totalnumber').innerHTML = result['totalnumber']; document.getElementById('totalnumber').style.display = "block"; /* document.getElementById('total-price-basket').innerHTML = pricebasket.formatMoney(2, ',', '.'); document.getElementById('discountrate').innerHTML = "İndirim:" + result['totaldiscount'] + " TL "; if(result['totalnumber'] ==0) { document.getElementById('totalnumber').style.display="none"; }else{ document.getElementById('totalnumber').style.display="block"; } */ }); //location.reload(); }, 400); } function changecount(id, count) { setTimeout(function () { //var count = $('#count' + id).val(); console.log(count); jQuery.post("https://www.limasollunaci.com/changecount", { id: id, "count": count, _token: "fM9RB4e1Ogl2VxQOir0nBKsTE32Tp3EegdLTVTMN" }, function (result) { jQuery('#mCSB_1_container').empty(); jQuery('#total-price').empty(); var total = 0; for (var z = 0; z < result['getcart'].length; z++) { result['getcart'][z]['product'][0]['name'] = (result['getcart'][z]['product'][0]['name']).replace(/'/g, ''); var stringprice = result['getcart'][z]['price'].toString(); var intprice = parseFloat(stringprice.replace('.', "").replace(',', '.')); total += intprice * parseInt(result['getcart'][z]['number']); if(result['getcart'][z]['price'] ==0) { var button = ''; } else{ var button = ''; } jQuery("#mCSB_1_container").append(''); } var pricebasket = parseInt(total) - parseInt(result['totaldiscount']); document.getElementById('total-price').innerHTML = 'TOPLAM '+ total.formatMoney(2, ',', '.') +' TL
'; // document.getElementById('total-price-basket').innerHTML = pricebasket.formatMoney(2, ',', '.') + ' TL '; // document.getElementById('discountrate').innerHTML = result['totaldiscount'] + " TL "; /*document.getElementById('totalnumber').innerHTML = result['totalnumber']; document.getElementById('totalnumber').style.display="block"; */ }); //location.reload(); }, 400); } function buttontrigger() { } Number.prototype.formatMoney = function (fractionDigits, decimal, separator) { fractionDigits = isNaN(fractionDigits = Math.abs(fractionDigits)) ? 2 : fractionDigits; decimal = typeof (decimal) === "undefined" ? "." : decimal; separator = typeof (separator) === "undefined" ? "," : separator; var number = this; var neg = number < 0 ? "-" : ""; var wholePart = parseInt(number = Math.abs(+number || 0).toFixed(fractionDigits)) + ""; var separtorIndex = (separtorIndex = wholePart.length) > 3 ? separtorIndex % 3 : 0; return neg + (separtorIndex ? wholePart.substr(0, separtorIndex) + separator : "") + wholePart.substr(separtorIndex).replace(/(\d{3})(?=\d)/g, "$1" + separator) + (fractionDigits ? decimal + Math.abs(number - wholePart).toFixed(fractionDigits).slice(2) : ""); }; function formatmny(argument) { return Number(argument).formatMoney(2, ',', '.'); } $(document).on('click', '.product-counter button', function () { var dataid = $(this).data('id'); var val = parseInt($(this).parent().find('input').val()); var last_count; if ($(this).hasClass('plus')) { if (parseInt($(this).parent().find('input').val()) >= $(this).parent().find('input').attr("max")) { $(this).parent().find('input').val($(this).parent().find('input').attr("max")) } else { $(this).parent().find('input').val(val + 1); last_count = val + 1; } } else { if (val <= 1) { $(this).attr('disabled'); } else { $(this).removeAttr('disabled'); $(this).parent().find('input').val(val - 1); last_count = val - 1; } } changecount(dataid, last_count); }) function discountcuppon() { var code = $('#cupponcode').val(); jQuery.post("https://www.limasollunaci.com/getdiscountcode", { code: code, _token: "fM9RB4e1Ogl2VxQOir0nBKsTE32Tp3EegdLTVTMN" }, function (result) { if(result['status'] ==0) { $.fancybox.open("İndirim -" + result['discount'].formatMoney(2, ',', '.') + " TL" + result['name'] + "
"; document.getElementById('total-price').innerHTML = "TOPLAM" + result['totalamount'] + " TL
"; } else{ $.fancybox.open("