//function updateSummary() {
//Marketing UwU
var origprice = parseFloat(price / (1 - discount));
origprice = (origprice / 0.75).toFixed(2);
$('#original-price').text(currencyConversion(origprice));
$('#original-price').attr('data-price',origprice);
$('#total-price').text(currencyConversion(price));
$('#total-price').attr('data-price', price);
// $('#completion-time').text((completion_time <= 0 ? "Invalid" : completion_time <= 24 ? completion_time + " Hours" : Math.ceil(completion_time / 24) + " Days"));
$('input[name="sbtgvh"]').val(formatCrypt(currencyConversion(subtotal_price)));
$('input[name="exjgvh"]').val(formatCrypt(currencyConversion(extra_price)));
$('input[name="toqgvh"]').val(formatCrypt(currencyConversion(price)));
$('input[name="currency"]').val($('#local_currency').val());
formUpdated();
if (current_tier_num >= desired_tier_num) {
if (current_tier_num === desired_tier_num) {
switch (current_division) {
case 'i':
if (desired_division === "i") {
$('#purchase-boost').html(
'<i class="uil uil-exclamation-circle" style="vertical-align: middle;"></i>' +
'Выбор услуги невозможен'
);
$('#purchase-boost').attr('disabled', 'disabled');
}
break;
case 'ii':
if (desired_division != "iii") {
$('#purchase-boost').html(
'<i class="uil uil-exclamation-circle" style="vertical-align: middle;"></i>' +
'Выбор услуги невозможен'
);
$('#purchase-boost').attr('disabled', 'disabled');
}
break;
case 'iii':
$('#purchase-boost').html(
'<i class="uil uil-exclamation-circle" style="vertical-align: middle;"></i>' +
'Выбор услуги невозможен'
);
$('#purchase-boost').attr('disabled', 'disabled');
break;
}
} else {
$('#purchase-boost').html(
'<i class="uil uil-exclamation-circle" style="vertical-align: middle;"></i>' +
'Выбор услуги невозможен'
);
$('#purchase-boost').attr('disabled', 'disabled');
}
}
}