|
|
|
@ -292,8 +292,23 @@ $(document).ready(function () { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function selectPickup() { |
|
|
|
|
|
|
|
var cartItogo = $('#cart-itogo').html(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#order-itogo-delivery-up').html(0); |
|
|
|
|
|
|
|
$('#order-itogo-delivery').html(0); |
|
|
|
|
|
|
|
$('#order-itogo-amount-up').html(parseFloat(cartItogo)); |
|
|
|
|
|
|
|
$('#order-itogo-amount').html(parseFloat(cartItogo)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$('input[name=deliv_service]').change(function () { |
|
|
|
$('input[name=deliv_service]').change(function () { |
|
|
|
switch ($(this).val()) { |
|
|
|
switch ($(this).val()) { |
|
|
|
|
|
|
|
case 'pickup' : |
|
|
|
|
|
|
|
selectPickup(); |
|
|
|
|
|
|
|
$('.alemtat_block').hide(); |
|
|
|
|
|
|
|
$('.kazpost_block').hide(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
break; |
|
|
|
case 'kazpost' : |
|
|
|
case 'kazpost' : |
|
|
|
selectKazpostCity(); |
|
|
|
selectKazpostCity(); |
|
|
|
$('.alemtat_block').hide(); |
|
|
|
$('.alemtat_block').hide(); |
|
|
|
@ -322,7 +337,8 @@ $(document).ready(function () { |
|
|
|
}); |
|
|
|
}); |
|
|
|
// not needed
|
|
|
|
// not needed
|
|
|
|
// selectCity();
|
|
|
|
// selectCity();
|
|
|
|
selectKazpostCity(); |
|
|
|
|
|
|
|
|
|
|
|
//selectKazpostCity();
|
|
|
|
$('#call-form').on('submit', function () { |
|
|
|
$('#call-form').on('submit', function () { |
|
|
|
var f_name = $('#call-form #id_name'); |
|
|
|
var f_name = $('#call-form #id_name'); |
|
|
|
var f_phone = $('#call-form #id_phone'); |
|
|
|
var f_phone = $('#call-form #id_phone'); |
|
|
|
@ -410,11 +426,11 @@ $(document).ready(function () { |
|
|
|
} |
|
|
|
} |
|
|
|
//form-group has-error
|
|
|
|
//form-group has-error
|
|
|
|
return false; |
|
|
|
return false; |
|
|
|
}) |
|
|
|
}); |
|
|
|
$('input[name=stars]').each(function () { |
|
|
|
$('input[name=stars]').each(function () { |
|
|
|
var star = $(this); |
|
|
|
var star = $(this); |
|
|
|
star.parent('label').replaceWith(star); |
|
|
|
star.parent('label').replaceWith(star); |
|
|
|
}) |
|
|
|
}); |
|
|
|
$('input[name=stars]').rating(); |
|
|
|
$('input[name=stars]').rating(); |
|
|
|
$('.star-rating-control').append('<div class="clearfix"></div><br>'); |
|
|
|
$('.star-rating-control').append('<div class="clearfix"></div><br>'); |
|
|
|
$('.star').rating(); |
|
|
|
$('.star').rating(); |
|
|
|
|