function bandicam_get_price(product_code, count) { return bandicam_get_price_ex(product_code, count, 0); } function bandicam_get_price_ex(product_code, count, years) { var total_price = 0; var price_per_item = 0; if(product_code == 'BDCAM-PY') { if(years <= 0) years = 1; if(years == 1) price_per_item = 155*(1-0/100); else if(years == 2) price_per_item = 309*(1-0/100); else if(years == 3) price_per_item = 464*(1-0/100); else if(years == 4) price_per_item = 619*(1-0/100); else if(years == 5) price_per_item = 774*(1-0/100); } else if(product_code == 'BDCUT-PY') { if(years <= 0) years = 1; if(years == 1) price_per_item = 112*(1-0/100); else if(years == 2) price_per_item = 224*(1-0/100); else if(years == 3) price_per_item = 336*(1-0/100); else if(years == 4) price_per_item = 448*(1-0/100); else if(years == 5) price_per_item = 560*(1-0/100); } else if(product_code == 'BDPACK-PY') { if(years <= 0) years = 1; if(years == 1) price_per_item = 229*(1-0/100); else if(years == 2) price_per_item = 458*(1-0/100); else if(years == 3) price_per_item = 687*(1-0/100); else if(years == 4) price_per_item = 916*(1-0/100); else if(years == 5) price_per_item = 1145*(1-0/100); } else if(product_code == 'BDCAM-PP') { price_per_item = 239; } else if(product_code == 'BDCUT-PP') { price_per_item = 175; } else if(product_code == 'BDPACK-PP') { price_per_item = 360; } else if(product_code == 'BDCAM-BP') { total_price = bandicam_get_price_ex('BDCAM-BY', count, 1)*6; } else if(product_code == 'BDCUT-BP') { total_price = bandicam_get_price_ex('BDCUT-BY', count, 1)*6; } else if(product_code == 'BDPACK-BP') { total_price = bandicam_get_price_ex('BDPACK-BY', count, 1)*6; } else if(product_code == 'BDCAM-BY') { if(years <= 0) years = 1; if(count == 1) { if(years == 1) price_per_item = 235; if(years == 2) price_per_item = 377; if(years == 3) price_per_item = 530; if(years == 4) price_per_item = 659; if(years == 5) price_per_item = 765; } else if(count == 2) { if(years == 1) price_per_item = 228; if(years == 2) price_per_item = 365; if(years == 3) price_per_item = 514; if(years == 4) price_per_item = 639; if(years == 5) price_per_item = 742; } else if(count == 3) { if(years == 1) price_per_item = 225; if(years == 2) price_per_item = 360; if(years == 3) price_per_item = 506; if(years == 4) price_per_item = 630; if(years == 5) price_per_item = 731; } else if(count == 4) { if(years == 1) price_per_item = 219; if(years == 2) price_per_item = 351; if(years == 3) price_per_item = 494; if(years == 4) price_per_item = 614; if(years == 5) price_per_item = 713; } else if(count >= 5 && count < 10) { if(years == 1) price_per_item = 208; if(years == 2) price_per_item = 334; if(years == 3) price_per_item = 469; if(years == 4) price_per_item = 584; if(years == 5) price_per_item = 677; } else if(count >= 10 && count < 20) { if(years == 1) price_per_item = 203; if(years == 2) price_per_item = 325; if(years == 3) price_per_item = 457; if(years == 4) price_per_item = 568; if(years == 5) price_per_item = 660; } else { if(years == 1) price_per_item = 196; if(years == 2) price_per_item = 314; if(years == 3) price_per_item = 442; if(years == 4) price_per_item = 550; if(years == 5) price_per_item = 638; } } else if(product_code == 'BDCUT-BY') { if(years <= 0) years = 1; if(count == 1) { if(years == 1) price_per_item = 181; if(years == 2) price_per_item = 290; if(years == 3) price_per_item = 407; if(years == 4) price_per_item = 507; if(years == 5) price_per_item = 588; } else if(count == 2) { if(years == 1) price_per_item = 175; if(years == 2) price_per_item = 281; if(years == 3) price_per_item = 395; if(years == 4) price_per_item = 491; if(years == 5) price_per_item = 570; } else if(count == 3) { if(years == 1) price_per_item = 173; if(years == 2) price_per_item = 277; if(years == 3) price_per_item = 390; if(years == 4) price_per_item = 485; if(years == 5) price_per_item = 563; } else if(count == 4) { if(years == 1) price_per_item = 168; if(years == 2) price_per_item = 269; if(years == 3) price_per_item = 379; if(years == 4) price_per_item = 471; if(years == 5) price_per_item = 547; } else if(count >= 5 && count < 10) { if(years == 1) price_per_item = 162; if(years == 2) price_per_item = 259; if(years == 3) price_per_item = 364; if(years == 4) price_per_item = 453; if(years == 5) price_per_item = 526; } else if(count >= 10 && count < 20) { if(years == 1) price_per_item = 156; if(years == 2) price_per_item = 249; if(years == 3) price_per_item = 350; if(years == 4) price_per_item = 436; if(years == 5) price_per_item = 506; } else { if(years == 1) price_per_item = 151; if(years == 2) price_per_item = 241; if(years == 3) price_per_item = 339; if(years == 4) price_per_item = 422; if(years == 5) price_per_item = 490; } } else if(product_code == 'BDPACK-BY') { if(years <= 0) years = 1; if(count == 1) { if(years == 1) price_per_item = 379; if(years == 2) price_per_item = 606; if(years == 3) price_per_item = 852; if(years == 4) price_per_item = 1060; if(years == 5) price_per_item = 1231; } else if(count == 2) { if(years == 1) price_per_item = 368; if(years == 2) price_per_item = 587; if(years == 3) price_per_item = 826; if(years == 4) price_per_item = 1028; if(years == 5) price_per_item = 1194; } else if(count == 3) { if(years == 1) price_per_item = 363; if(years == 2) price_per_item = 579; if(years == 3) price_per_item = 815; if(years == 4) price_per_item = 1014; if(years == 5) price_per_item = 1177; } else if(count == 4) { if(years == 1) price_per_item = 353; if(years == 2) price_per_item = 564; if(years == 3) price_per_item = 794; if(years == 4) price_per_item = 988; if(years == 5) price_per_item = 1147; } else if(count >= 5 && count < 10) { if(years == 1) price_per_item = 337; if(years == 2) price_per_item = 538; if(years == 3) price_per_item = 758; if(years == 4) price_per_item = 943; if(years == 5) price_per_item = 1094; } else if(count >= 10 && count < 20) { if(years == 1) price_per_item = 327; if(years == 2) price_per_item = 522; if(years == 3) price_per_item = 734; if(years == 4) price_per_item = 913; if(years == 5) price_per_item = 1060; } else { if(years == 1) price_per_item = 316; if(years == 2) price_per_item = 505; if(years == 3) price_per_item = 711; if(years == 4) price_per_item = 884; if(years == 5) price_per_item = 1026; } } if(total_price == 0) { total_price = count*price_per_item; } if("CNY" == "KRW" && count >= 2) { if(product_code == 'BDCAM-PY') total_price -= 11000; if(product_code == 'BDCAM-PP') total_price -= 13860; if(product_code == 'BDCUT-PY') total_price -= 8250; if(product_code == 'BDCUT-PP') total_price -= 11000; } else if("CNY" == "USD" && count >= 2) { if(product_code == 'BDCAM-PY') total_price -= 10.9; if(product_code == 'BDCAM-PP') total_price -= 14.77; if(product_code == 'BDCUT-PY') total_price -= 7.27; if(product_code == 'BDCUT-PP') total_price -= 9.84; } else if("CNY" == "EUR" && count >= 2) { if(product_code == 'BDCAM-PY') total_price -= 10.9; if(product_code == 'BDCAM-PP') total_price -= 14.77; if(product_code == 'BDCUT-PY') total_price -= 7.27; if(product_code == 'BDCUT-PP') total_price -= 9.84; } else if("CNY" == "JPY" && count >= 2) { if(product_code == 'BDCAM-PY') total_price -= 1100; if(product_code == 'BDCAM-PP') total_price -= 800; if(product_code == 'BDCUT-PY') total_price -= 830; if(product_code == 'BDCUT-PP') total_price -= 500; } else if("CNY" == "CNY" && count >= 2) { if(product_code == 'BDCAM-PY') total_price -= 58; if(product_code == 'BDCAM-PP') total_price -= 78; if(product_code == 'BDCUT-PY') total_price -= 38; if(product_code == 'BDCUT-PP') total_price -= 52; } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // special price var special_price = 0; if("CNY" == "USD" && count <= 2 && years == 1) { if(count == 1) { if(product_code == 'BDCAM-PY') special_price = 0; if(product_code == 'BDCUT-PY') special_price = 0; } else if(count == 2) { if(product_code == 'BDCAM-PY') special_price = 0; if(product_code == 'BDCUT-PY') special_price = 0; } } else if("CNY" == "EUR" && count <= 2 && years == 1) { if(count == 1) { if(product_code == 'BDCAM-PY') special_price = 0; if(product_code == 'BDCUT-PY') special_price = 0; } else if(count == 2) { if(product_code == 'BDCAM-PY') special_price = 0; if(product_code == 'BDCUT-PY') special_price = 0; } } else if("CNY" == "JPY" && count <= 2 && years == 1) { if(count == 1) { if(product_code == 'BDCAM-PY') special_price = 0; if(product_code == 'BDCUT-PY') special_price = 0; } else if(count == 2) { if(product_code == 'BDCAM-PY') special_price = 0; if(product_code == 'BDCUT-PY') special_price = 0; } } else if("CNY" == "CNY" && count <= 2 && years == 1) { if(count == 1) { if(product_code == 'BDCAM-PY') special_price = 0; if(product_code == 'BDCUT-PY') special_price = 0; } else if(count == 2) { if(product_code == 'BDCAM-PY') special_price = 0; if(product_code == 'BDCUT-PY') special_price = 0; } } else if("CNY" == "KRW" && count <= 2 && years == 1) { if(count == 1) { if(product_code == 'BDCAM-PY') special_price = 0; if(product_code == 'BDCUT-PY') special_price = 0; } else if(count == 2) { if(product_code == 'BDCAM-PY') special_price = 0; if(product_code == 'BDCUT-PY') special_price = 0; } } if(special_price > 0) total_price = special_price; if((product_code.includes('-PP') || product_code.includes('-BP')) && years == 1) total_price = parseInt(total_price*40/100); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// total_price = parseFloat(total_price).toFixed(2); return Number(total_price); } function bandicam_get_price_original(product_code, count) { return bandicam_get_price_original_ex(product_code, count, 0); } function bandicam_get_price_original_ex(product_code, count, years) { var total_price = 0; var price_per_item = 0; if(product_code == 'BDCAM-PY') { price_per_item = 221; } else if(product_code == 'BDCUT-PY') { price_per_item = 160; } else if(product_code == 'BDCAM-PP') { price_per_item = 299; } else if(product_code == 'BDCUT-PP') { price_per_item = 219; } else if(product_code == 'BDPACK-PY') { price_per_item = 381; } else if(product_code == 'BDPACK-PP') { price_per_item = 518; } else if(product_code == 'BDCAM-BY') { price_per_item = 428; } else if(product_code == 'BDCUT-BY') { price_per_item = 329; } else if(product_code == 'BDPACK-BY') { price_per_item = 757; } else if(product_code == 'BDCAM-BP') { price_per_item = 1410; } else if(product_code == 'BDCUT-BP') { price_per_item = 1086; } else if(product_code == 'BDPACK-BP') { price_per_item = 2274; } total_price = count*price_per_item; if(years > 0) total_price = total_price*years; if((product_code.includes('-PP') || product_code.includes('-BP')) && years == 1) total_price = parseInt(total_price*30/100); total_price = parseFloat(total_price).toFixed(2); return Number(total_price); }