حخح

هخه

3

🧮 ماشین حساب آنلاین قیمت پنجره دوجداره
ابعاد و مشخصات پنجره خود را وارد کنید تا قیمت تقریبی آن محاسبه شود. این مبلغ صرفاً برآورد اولیه بوده و قیمت نهایی پس از بازدید و اندازه‌گیری اعلام خواهد شد.

📐 ابعاد پنجره
عرض (سانتی متر)
ارتفاع (سانتی متر)


🪟 تعداد پنجره
تعداد

🚪 نوع بازشو
ثابت لولایی دوحالته کشویی فرانسوی

🏭 نوع پروفیل
اقتصادی استاندارد پریمیوم

💎 نوع شیشه
دوجداره معمولی Low-E لمینت سکوریت رفلکس

🎨 رنگ پروفیل
سفید طرح چوب مشکی طوسی

🔧 خدمات نصب
نصب توسط راشان پنجره

🦟 توری پنجره
توری آلومینیومی

💰 محاسبه قیمت
نتیجه محاسبه
متراژ کل - قیمت هر پنجره - قیمت کل پروژه -
📞 دریافت مشاوره رایگان


/* ====================================== ماشین حساب قیمت پنجره دوجداره بخش دوم : CSS ====================================== */ #upvc-calculator{ max-width:1000px; margin:50px auto; font-family:tahoma,sans-serif; direction:rtl; color:#333; } #upvc-calculator *{ box-sizing:border-box; } .calc-container{ background:#ffffff; border:1px solid #e5e5e5; border-radius:12px; overflow:hidden; box-shadow:0 10px 35px rgba(0,0,0,.08); } .calc-header{ background:#ee8f19; color:#fff; padding:35px; text-align:center; } .calc-header h2{ margin:0 0 15px; font-size:30px; } .calc-header p{ margin:0; line-height:2; font-size:15px; } .calc-card{ margin:25px; padding:25px; border:1px solid #ececec; border-radius:10px; background:#fafafa; } .calc-card h3{ margin-top:0; color:#ee8f19; font-size:22px; } .row{ display:flex; gap:20px; flex-wrap:wrap; } .field{ flex:1; min-width:220px; margin-top:15px; } .field label{ display:block; margin-bottom:10px; font-weight:bold; } .field input[type=number], .field select{ width:100%; height:48px; border:1px solid #d8d8d8; border-radius:8px; padding:0 12px; font-size:15px; transition:.3s; background:#fff; } .field input[type=number]:focus, .field select:focus{ border-color:#ee8f19; outline:none; box-shadow:0 0 0 3px rgba(238,143,25,.15); } .field input[type=checkbox]{ width:18px; height:18px; margin-left:8px; vertical-align:middle; } .calc-action{ text-align:center; margin:40px 0; } #calculateBtn{ background:#ee8f19; color:#fff; border:none; border-radius:8px; padding:16px 45px; font-size:18px; cursor:pointer; transition:.3s; font-weight:bold; } #calculateBtn:hover{ background:#d97900; transform:translateY(-2px); } #resultBox{ display:none; margin:30px; border:2px solid #ee8f19; border-radius:10px; background:#fffdf8; padding:25px; } #resultBox h2{ margin-top:0; text-align:center; color:#ee8f19; } #resultBox table{ width:100%; border-collapse:collapse; margin-top:20px; } #resultBox table td{ border:1px solid #dddddd; padding:14px; font-size:16px; } #resultBox table tr:nth-child(even){ background:#faf7f2; } #resultBox table td:first-child{ font-weight:bold; width:45%; } #totalPrice{ color:#d35400; font-size:22px; font-weight:bold; } #callButton{ display:block; width:280px; margin:30px auto 0; text-align:center; background:#27ae60; color:#fff; text-decoration:none; padding:15px; border-radius:8px; font-size:18px; font-weight:bold; transition:.3s; } #callButton:hover{ background:#219150; } @media(max-width:768px){ .calc-header{ padding:25px; } .calc-header h2{ font-size:24px; } .calc-card{ margin:15px; padding:18px; } .row{ display:block; } .field{ margin-bottom:18px; } #calculateBtn{ width:90%; } #callButton{ width:90%; } #resultBox{ margin:15px; } #resultBox table td{ font-size:14px; } } /* ========================================== ماشین حساب قیمت پنجره دوجداره بخش سوم : JavaScript ========================================== */ /* ---------- تنظیم قیمت‌ها ---------- فقط این قسمت را در آینده تغییر دهید. قیمت‌ها نمونه هستند و باید با تعرفه واقعی راشان پنجره جایگزین شوند. --------------------------------------*/ const PRICE = { /* قیمت پایه هر متر مربع */ basePerSquare: 4200000, /* ضریب نوع بازشو */ opening:{ fixed:1.00, casement:1.15, tilt:1.28, sliding:1.22, french:1.35 }, /* ضریب پروفیل */ profile:{ economy:1.00, standard:1.12, premium:1.25 }, /* ضریب شیشه */ glass:{ double:1.00, lowe:1.18, laminate:1.26, temper:1.15, reflective:1.10 }, /* ضریب رنگ */ color:{ white:1.00, wood:1.18, black:1.15, gray:1.12 }, /* هزینه نصب هر متر مربع */ installationPerSquare:350000, /* هزینه هر توری */ mosquitoPrice:900000 }; /* ================================= */ const btn=document.getElementById("calculateBtn"); btn.addEventListener("click",calculatePrice); function calculatePrice(){ let width=parseFloat(document.getElementById("width").value); let height=parseFloat(document.getElementById("height").value); let count=parseInt(document.getElementById("count").value); if(isNaN(width) || isNaN(height)){ alert("لطفاً عرض و ارتفاع را وارد کنید."); return; } if(width<30 || height<30){ alert("ابعاد وارد شده معتبر نیست."); return; } if(isNaN(count) || count<1){ count=1; } let opening=document.getElementById("opening").value; let profile=document.getElementById("profile").value; let glass=document.getElementById("glass").value; let color=document.getElementById("color").value; let installation=document.getElementById("installation").checked; let mosquito=document.getElementById("mosquito").checked; /* --------------------------- */ let area=(width/100)*(height/100); let totalArea=area*count; /* --------------------------- */ let unitPrice= area* PRICE.basePerSquare* PRICE.opening[opening]* PRICE.profile[profile]* PRICE.glass[glass]* PRICE.color[color]; /* نصب */ if(installation){ unitPrice+=area*PRICE.installationPerSquare; } /* توری */ if(mosquito){ unitPrice+=PRICE.mosquitoPrice; } /* کل */ let totalPrice=unitPrice*count; /* نمایش */ document.getElementById("areaResult").innerHTML= totalArea.toFixed(2)+" متر مربع"; document.getElementById("unitPrice").innerHTML= money(unitPrice)+" تومان"; document.getElementById("totalPrice").innerHTML= money(totalPrice)+" تومان"; document.getElementById("resultBox").style.display="block"; document.getElementById("resultBox").scrollIntoView({ behavior:"smooth" }); } /* ================================= */ function money(number){ return Math.round(number).toLocaleString("fa-IR"); } /* ================================= */ /* امکان محاسبه خودکار هنگام تغییر */ const fields=document.querySelectorAll( "#windowCalculator input,#windowCalculator select" ); fields.forEach(function(item){ item.addEventListener("change",function(){ if(document.getElementById("width").value!="" && document.getElementById("height").value!=""){ calculatePrice(); } }); }); /* ================================= */ /* دکمه Enter */ document.getElementById("windowCalculator") .addEventListener("keypress",function(e){ if(e.key==="Enter"){ e.preventDefault(); calculatePrice(); } }); /* ============================================== ماشین حساب قیمت پنجره دوجداره بخش چهارم : امکانات حرفه‌ای (V2) پیش‌فاکتور + واتساپ + چند پنجره ============================================== */ /* =========================================== 1) ارسال استعلام به واتساپ =========================================== */ const whatsappButton=document.createElement("a"); whatsappButton.id="whatsappButton"; whatsappButton.href="#"; whatsappButton.innerHTML="💬 دریافت پیش فاکتور در واتساپ"; document.getElementById("resultBox").appendChild(whatsappButton); whatsappButton.addEventListener("click",function(e){ e.preventDefault(); sendWhatsapp(); }); function sendWhatsapp(){ let width=document.getElementById("width").value; let height=document.getElementById("height").value; let count=document.getElementById("count").value; let opening=document.getElementById("opening").options[ document.getElementById("opening").selectedIndex].text; let profile=document.getElementById("profile").options[ document.getElementById("profile").selectedIndex].text; let glass=document.getElementById("glass").options[ document.getElementById("glass").selectedIndex].text; let color=document.getElementById("color").options[ document.getElementById("color").selectedIndex].text; let area=document.getElementById("areaResult").innerText; let total=document.getElementById("totalPrice").innerText; let text= `سلام استعلام قیمت پنجره دوجداره عرض: ${width} سانتی متر ارتفاع: ${height} سانتی متر تعداد: ${count} بازشو: ${opening} پروفیل: ${profile} شیشه: ${glass} رنگ: ${color} متراژ: ${area} قیمت تقریبی: ${total} لطفاً قیمت نهایی را اعلام فرمایید.`; window.open( "https://wa.me/989123841965?text="+ encodeURIComponent(text), "_blank" ); } /* =========================================== 2) ذخیره اطلاعات در مرورگر =========================================== */ saveData(); function saveData(){ const fields=document.querySelectorAll( "#windowCalculator input,#windowCalculator select" ); fields.forEach(function(item){ let value=localStorage.getItem(item.id); if(value!==null){ if(item.type==="checkbox"){ item.checked=value==="true"; }else{ item.value=value; } } item.addEventListener("change",function(){ if(item.type==="checkbox"){ localStorage.setItem(item.id,item.checked); }else{ localStorage.setItem(item.id,item.value); } }); }); } /* =========================================== 3) دکمه پاک کردن فرم =========================================== */ const resetButton=document.createElement("button"); resetButton.type="button"; resetButton.innerHTML="🗑 پاک کردن اطلاعات"; resetButton.style.marginTop="15px"; resetButton.style.marginRight="10px"; document.querySelector(".calc-action").appendChild(resetButton); resetButton.onclick=function(){ localStorage.clear(); location.reload(); }; /* =========================================== 4) چاپ پیش فاکتور =========================================== */ const printButton=document.createElement("button"); printButton.type="button"; printButton.innerHTML="🖨 چاپ پیش فاکتور"; printButton.style.marginTop="15px"; printButton.style.marginRight="10px"; document.querySelector(".calc-action").appendChild(printButton); printButton.onclick=function(){ window.print(); }; /* =========================================== 5) نمایش تاریخ محاسبه =========================================== */ const now=new Date(); const dateBox=document.createElement("div"); dateBox.style.marginTop="20px"; dateBox.style.fontSize="14px"; dateBox.style.color="#666"; dateBox.innerHTML= "تاریخ محاسبه : "+ now.toLocaleDateString("fa-IR"); document.getElementById("resultBox").appendChild(dateBox); /* =========================================== 6) هشدار قیمت تقریبی =========================================== */ const warning=document.createElement("div"); warning.style.marginTop="20px"; warning.style.padding="15px"; warning.style.background="#fff7e5"; warning.style.border="1px solid #ee8f19"; warning.style.borderRadius="8px"; warning.innerHTML= "⚠ قیمت نمایش داده شده تقریبی است و پس از بازدید، اندازه‌گیری و انتخاب نهایی متریال، قیمت قطعی اعلام خواهد شد."; document.getElementById("resultBox").appendChild(warning); /* =========================================== 7) Event برای Google Analytics 4 =========================================== */ function sendGAEvent(){ if(typeof gtag==="function"){ gtag( "event", "calculate_price", { event_category:"Calculator", event_label:"UPVC Window", value:1 } ); } } document .getElementById("calculateBtn") .addEventListener( "click", sendGAEvent );