Здравословни добавки
' + json['error']['warning'] + '
');$('html, body').animate({ scrollTop: 0 }, 'slow');
}if (json['error']['country']) {
$('select[name=\'country_id\']').after('' + json['error']['country'] + '
');
}if (json['error']['zone']) {
$('select[name=\'zone_id\']').after('' + json['error']['zone'] + '
');
}
}if (json['shipping_method']) {
html = '';
for (i in json['shipping_method']) {
if (!json['shipping_method'][i]['error']) {
for (j in json['shipping_method'][i]['quote']) {
html += '';
html += '
';
}
} else {
html += '';
if (json['shipping_method'][i]['quote'][j]['logo']) {
html += '
';
}
html += '' + json['shipping_method'][i]['quote'][j]['title'];
if (json['shipping_method'][i]['quote'][j]['desc']) {
html += '' + json['shipping_method'][i]['quote'][j]['desc'] + '';
}
html += '
';
html += '' + json['shipping_method'][i]['quote'][j]['text'] + '
';
html += '' + json['shipping_method'][i]['error'] + '
';
}
}$('#product-shipping #shipping-info').html(html);}
}
});
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
}$(document).ready(function(){var pselector = '#product';
$(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\'], '+pselector+' input[type=\'checkbox\'], '+pselector+' select:not([name=\'country_id\']), '+pselector+' textarea').change(function() {
updateProductShipping();
});$('#product-shipping select[name=\'country_id\']').on('change', function() {
$.ajax({
url: 'index.php?route=product/product/country&country_id=' + this.value,
dataType: 'json',
beforeSend: function() {
$('#product-shipping select[name=\'country_id\']').after(' ');
},
complete: function() {
$('.fa-spin').remove();
},
success: function(json) {
html = '';if (json['zone'] && json['zone'] != '') {
for (i = 0; i < json['zone'].length; i++) {
html += '';
}
} else {
html += '';
}$('#product-shipping select[name=\'zone_id\']').html(html);
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});$('#product-shipping .sp-block-title').on('click', function() {
$(this).toggleClass('sp-open');
$('#product-shipping .sp-data-block').slideToggle('slow');
});$('#product-shipping select[name=\'country_id\']').trigger('change');if (window.matchMedia("(max-width: 500px)").matches) {
$('#product-shipping .sp-block-title').removeClass('sp-open');
$('#product-shipping .sp-data-block').css({'display':'block'});
}
updateProductShipping();
});
script>
function updateProductShipping() {
var pselector = '#product';
$.ajax({
url: 'index.php?route=product/product/quoteProduct',
type: 'post',
data: $(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\']:checked, '+pselector+' input[type=\'checkbox\']:checked, '+pselector+' select, '+pselector+' textarea'),
dataType: 'json',
cache: false,
success: function(json) {
$('.alert, .text-danger').remove();
$.ajax({
url: 'index.php?route=product/product/quote',
type: 'post',
data: 'country_id=&zone_id=',
dataType: 'json',
cache: false,
beforeSend: function() {
$('#product-shipping #shipping-info').fadeOut('slow');
},
complete: function() {
$('#product-shipping #shipping-info').fadeIn('slow');
},
success: function(json) {
if (json['error']) {
if (json['error']['warning']) {
$('.breadcrumb').after(' ' + json['error']['warning'] + '
');$('html, body').animate({ scrollTop: 0 }, 'slow');
}if (json['error']['country']) {
$('select[name=\'country_id\']').after('' + json['error']['country'] + '
');
}if (json['error']['zone']) {
$('select[name=\'zone_id\']').after('' + json['error']['zone'] + '
');
}
}if (json['shipping_method']) {
html = '';
for (i in json['shipping_method']) {
if (!json['shipping_method'][i]['error']) {
for (j in json['shipping_method'][i]['quote']) {
html += '';
html += '
';
}
} else {
html += '';
if (json['shipping_method'][i]['quote'][j]['logo']) {
html += '
';
}
html += '' + json['shipping_method'][i]['quote'][j]['title'];
if (json['shipping_method'][i]['quote'][j]['desc']) {
html += '' + json['shipping_method'][i]['quote'][j]['desc'] + '';
}
html += '
';
html += '' + json['shipping_method'][i]['quote'][j]['text'] + '
';
html += '' + json['shipping_method'][i]['error'] + '
';
}
}$('#product-shipping #shipping-info').html(html);}
}
});
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
}$(document).ready(function(){var pselector = '#product';
$(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\'], '+pselector+' input[type=\'checkbox\'], '+pselector+' select:not([name=\'country_id\']), '+pselector+' textarea').change(function() {
updateProductShipping();
});$('#product-shipping select[name=\'country_id\']').on('change', function() {
$.ajax({
url: 'index.php?route=product/product/country&country_id=' + this.value,
dataType: 'json',
beforeSend: function() {
$('#product-shipping select[name=\'country_id\']').after(' ');
},
complete: function() {
$('.fa-spin').remove();
},
success: function(json) {
html = '';if (json['zone'] && json['zone'] != '') {
for (i = 0; i < json['zone'].length; i++) {
html += '';
}
} else {
html += '';
}$('#product-shipping select[name=\'zone_id\']').html(html);
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});$('#product-shipping .sp-block-title').on('click', function() {
$(this).toggleClass('sp-open');
$('#product-shipping .sp-data-block').slideToggle('slow');
});$('#product-shipping select[name=\'country_id\']').trigger('change');if (window.matchMedia("(max-width: 500px)").matches) {
$('#product-shipping .sp-block-title').removeClass('sp-open');
$('#product-shipping .sp-data-block').css({'display':'block'});
}
updateProductShipping();
});
script>
function updateProductShipping() {
var pselector = '#product';
$.ajax({
url: 'index.php?route=product/product/quoteProduct',
type: 'post',
data: $(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\']:checked, '+pselector+' input[type=\'checkbox\']:checked, '+pselector+' select, '+pselector+' textarea'),
dataType: 'json',
cache: false,
success: function(json) {
$('.alert, .text-danger').remove();
$.ajax({
url: 'index.php?route=product/product/quote',
type: 'post',
data: 'country_id=&zone_id=',
dataType: 'json',
cache: false,
beforeSend: function() {
$('#product-shipping #shipping-info').fadeOut('slow');
},
complete: function() {
$('#product-shipping #shipping-info').fadeIn('slow');
},
success: function(json) {
if (json['error']) {
if (json['error']['warning']) {
$('.breadcrumb').after(' ' + json['error']['warning'] + '
');$('html, body').animate({ scrollTop: 0 }, 'slow');
}if (json['error']['country']) {
$('select[name=\'country_id\']').after('' + json['error']['country'] + '
');
}if (json['error']['zone']) {
$('select[name=\'zone_id\']').after('' + json['error']['zone'] + '
');
}
}if (json['shipping_method']) {
html = '';
for (i in json['shipping_method']) {
if (!json['shipping_method'][i]['error']) {
for (j in json['shipping_method'][i]['quote']) {
html += '';
html += '
';
}
} else {
html += '';
if (json['shipping_method'][i]['quote'][j]['logo']) {
html += '
';
}
html += '' + json['shipping_method'][i]['quote'][j]['title'];
if (json['shipping_method'][i]['quote'][j]['desc']) {
html += '' + json['shipping_method'][i]['quote'][j]['desc'] + '';
}
html += '
';
html += '' + json['shipping_method'][i]['quote'][j]['text'] + '
';
html += '' + json['shipping_method'][i]['error'] + '
';
}
}$('#product-shipping #shipping-info').html(html);}
}
});
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
}$(document).ready(function(){var pselector = '#product';
$(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\'], '+pselector+' input[type=\'checkbox\'], '+pselector+' select:not([name=\'country_id\']), '+pselector+' textarea').change(function() {
updateProductShipping();
});$('#product-shipping select[name=\'country_id\']').on('change', function() {
$.ajax({
url: 'index.php?route=product/product/country&country_id=' + this.value,
dataType: 'json',
beforeSend: function() {
$('#product-shipping select[name=\'country_id\']').after(' ');
},
complete: function() {
$('.fa-spin').remove();
},
success: function(json) {
html = '';if (json['zone'] && json['zone'] != '') {
for (i = 0; i < json['zone'].length; i++) {
html += '';
}
} else {
html += '';
}$('#product-shipping select[name=\'zone_id\']').html(html);
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});$('#product-shipping .sp-block-title').on('click', function() {
$(this).toggleClass('sp-open');
$('#product-shipping .sp-data-block').slideToggle('slow');
});$('#product-shipping select[name=\'country_id\']').trigger('change');if (window.matchMedia("(max-width: 500px)").matches) {
$('#product-shipping .sp-block-title').removeClass('sp-open');
$('#product-shipping .sp-data-block').css({'display':'block'});
}
updateProductShipping();
});
script>
function updateProductShipping() {
var pselector = '#product';
$.ajax({
url: 'index.php?route=product/product/quoteProduct',
type: 'post',
data: $(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\']:checked, '+pselector+' input[type=\'checkbox\']:checked, '+pselector+' select, '+pselector+' textarea'),
dataType: 'json',
cache: false,
success: function(json) {
$('.alert, .text-danger').remove();
$.ajax({
url: 'index.php?route=product/product/quote',
type: 'post',
data: 'country_id=&zone_id=',
dataType: 'json',
cache: false,
beforeSend: function() {
$('#product-shipping #shipping-info').fadeOut('slow');
},
complete: function() {
$('#product-shipping #shipping-info').fadeIn('slow');
},
success: function(json) {
if (json['error']) {
if (json['error']['warning']) {
$('.breadcrumb').after(' ' + json['error']['warning'] + '
');$('html, body').animate({ scrollTop: 0 }, 'slow');
}if (json['error']['country']) {
$('select[name=\'country_id\']').after('' + json['error']['country'] + '
');
}if (json['error']['zone']) {
$('select[name=\'zone_id\']').after('' + json['error']['zone'] + '
');
}
}if (json['shipping_method']) {
html = '';
for (i in json['shipping_method']) {
if (!json['shipping_method'][i]['error']) {
for (j in json['shipping_method'][i]['quote']) {
html += '';
html += '
';
}
} else {
html += '';
if (json['shipping_method'][i]['quote'][j]['logo']) {
html += '
';
}
html += '' + json['shipping_method'][i]['quote'][j]['title'];
if (json['shipping_method'][i]['quote'][j]['desc']) {
html += '' + json['shipping_method'][i]['quote'][j]['desc'] + '';
}
html += '
';
html += '' + json['shipping_method'][i]['quote'][j]['text'] + '
';
html += '' + json['shipping_method'][i]['error'] + '
';
}
}$('#product-shipping #shipping-info').html(html);}
}
});
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
}$(document).ready(function(){var pselector = '#product';
$(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\'], '+pselector+' input[type=\'checkbox\'], '+pselector+' select:not([name=\'country_id\']), '+pselector+' textarea').change(function() {
updateProductShipping();
});$('#product-shipping select[name=\'country_id\']').on('change', function() {
$.ajax({
url: 'index.php?route=product/product/country&country_id=' + this.value,
dataType: 'json',
beforeSend: function() {
$('#product-shipping select[name=\'country_id\']').after(' ');
},
complete: function() {
$('.fa-spin').remove();
},
success: function(json) {
html = '';if (json['zone'] && json['zone'] != '') {
for (i = 0; i < json['zone'].length; i++) {
html += '';
}
} else {
html += '';
}$('#product-shipping select[name=\'zone_id\']').html(html);
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});$('#product-shipping .sp-block-title').on('click', function() {
$(this).toggleClass('sp-open');
$('#product-shipping .sp-data-block').slideToggle('slow');
});$('#product-shipping select[name=\'country_id\']').trigger('change');if (window.matchMedia("(max-width: 500px)").matches) {
$('#product-shipping .sp-block-title').removeClass('sp-open');
$('#product-shipping .sp-data-block').css({'display':'block'});
}
updateProductShipping();
});
script>
function updateProductShipping() {
var pselector = '#product';
$.ajax({
url: 'index.php?route=product/product/quoteProduct',
type: 'post',
data: $(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\']:checked, '+pselector+' input[type=\'checkbox\']:checked, '+pselector+' select, '+pselector+' textarea'),
dataType: 'json',
cache: false,
success: function(json) {
$('.alert, .text-danger').remove();
$.ajax({
url: 'index.php?route=product/product/quote',
type: 'post',
data: 'country_id=&zone_id=',
dataType: 'json',
cache: false,
beforeSend: function() {
$('#product-shipping #shipping-info').fadeOut('slow');
},
complete: function() {
$('#product-shipping #shipping-info').fadeIn('slow');
},
success: function(json) {
if (json['error']) {
if (json['error']['warning']) {
$('.breadcrumb').after(' ' + json['error']['warning'] + '
');$('html, body').animate({ scrollTop: 0 }, 'slow');
}if (json['error']['country']) {
$('select[name=\'country_id\']').after('' + json['error']['country'] + '
');
}if (json['error']['zone']) {
$('select[name=\'zone_id\']').after('' + json['error']['zone'] + '
');
}
}if (json['shipping_method']) {
html = '';
for (i in json['shipping_method']) {
if (!json['shipping_method'][i]['error']) {
for (j in json['shipping_method'][i]['quote']) {
html += '';
html += '
';
}
} else {
html += '';
if (json['shipping_method'][i]['quote'][j]['logo']) {
html += '
';
}
html += '' + json['shipping_method'][i]['quote'][j]['title'];
if (json['shipping_method'][i]['quote'][j]['desc']) {
html += '' + json['shipping_method'][i]['quote'][j]['desc'] + '';
}
html += '
';
html += '' + json['shipping_method'][i]['quote'][j]['text'] + '
';
html += '' + json['shipping_method'][i]['error'] + '
';
}
}$('#product-shipping #shipping-info').html(html);}
}
});
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
}$(document).ready(function(){var pselector = '#product';
$(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\'], '+pselector+' input[type=\'checkbox\'], '+pselector+' select:not([name=\'country_id\']), '+pselector+' textarea').change(function() {
updateProductShipping();
});$('#product-shipping select[name=\'country_id\']').on('change', function() {
$.ajax({
url: 'index.php?route=product/product/country&country_id=' + this.value,
dataType: 'json',
beforeSend: function() {
$('#product-shipping select[name=\'country_id\']').after(' ');
},
complete: function() {
$('.fa-spin').remove();
},
success: function(json) {
html = '';if (json['zone'] && json['zone'] != '') {
for (i = 0; i < json['zone'].length; i++) {
html += '';
}
} else {
html += '';
}$('#product-shipping select[name=\'zone_id\']').html(html);
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});$('#product-shipping .sp-block-title').on('click', function() {
$(this).toggleClass('sp-open');
$('#product-shipping .sp-data-block').slideToggle('slow');
});$('#product-shipping select[name=\'country_id\']').trigger('change');if (window.matchMedia("(max-width: 500px)").matches) {
$('#product-shipping .sp-block-title').removeClass('sp-open');
$('#product-shipping .sp-data-block').css({'display':'block'});
}
updateProductShipping();
});
script>
function updateProductShipping() {
var pselector = '#product';
$.ajax({
url: 'index.php?route=product/product/quoteProduct',
type: 'post',
data: $(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\']:checked, '+pselector+' input[type=\'checkbox\']:checked, '+pselector+' select, '+pselector+' textarea'),
dataType: 'json',
cache: false,
success: function(json) {
$('.alert, .text-danger').remove();
$.ajax({
url: 'index.php?route=product/product/quote',
type: 'post',
data: 'country_id=&zone_id=',
dataType: 'json',
cache: false,
beforeSend: function() {
$('#product-shipping #shipping-info').fadeOut('slow');
},
complete: function() {
$('#product-shipping #shipping-info').fadeIn('slow');
},
success: function(json) {
if (json['error']) {
if (json['error']['warning']) {
$('.breadcrumb').after(' ' + json['error']['warning'] + '
');$('html, body').animate({ scrollTop: 0 }, 'slow');
}if (json['error']['country']) {
$('select[name=\'country_id\']').after('' + json['error']['country'] + '
');
}if (json['error']['zone']) {
$('select[name=\'zone_id\']').after('' + json['error']['zone'] + '
');
}
}if (json['shipping_method']) {
html = '';
for (i in json['shipping_method']) {
if (!json['shipping_method'][i]['error']) {
for (j in json['shipping_method'][i]['quote']) {
html += '';
html += '
';
}
} else {
html += '';
if (json['shipping_method'][i]['quote'][j]['logo']) {
html += '
';
}
html += '' + json['shipping_method'][i]['quote'][j]['title'];
if (json['shipping_method'][i]['quote'][j]['desc']) {
html += '' + json['shipping_method'][i]['quote'][j]['desc'] + '';
}
html += '
';
html += '' + json['shipping_method'][i]['quote'][j]['text'] + '
';
html += '' + json['shipping_method'][i]['error'] + '
';
}
}$('#product-shipping #shipping-info').html(html);}
}
});
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
}$(document).ready(function(){var pselector = '#product';
$(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\'], '+pselector+' input[type=\'checkbox\'], '+pselector+' select:not([name=\'country_id\']), '+pselector+' textarea').change(function() {
updateProductShipping();
});$('#product-shipping select[name=\'country_id\']').on('change', function() {
$.ajax({
url: 'index.php?route=product/product/country&country_id=' + this.value,
dataType: 'json',
beforeSend: function() {
$('#product-shipping select[name=\'country_id\']').after(' ');
},
complete: function() {
$('.fa-spin').remove();
},
success: function(json) {
html = '';if (json['zone'] && json['zone'] != '') {
for (i = 0; i < json['zone'].length; i++) {
html += '';
}
} else {
html += '';
}$('#product-shipping select[name=\'zone_id\']').html(html);
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});$('#product-shipping .sp-block-title').on('click', function() {
$(this).toggleClass('sp-open');
$('#product-shipping .sp-data-block').slideToggle('slow');
});$('#product-shipping select[name=\'country_id\']').trigger('change');if (window.matchMedia("(max-width: 500px)").matches) {
$('#product-shipping .sp-block-title').removeClass('sp-open');
$('#product-shipping .sp-data-block').css({'display':'block'});
}
updateProductShipping();
});
script>
function updateProductShipping() {
var pselector = '#product';
$.ajax({
url: 'index.php?route=product/product/quoteProduct',
type: 'post',
data: $(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\']:checked, '+pselector+' input[type=\'checkbox\']:checked, '+pselector+' select, '+pselector+' textarea'),
dataType: 'json',
cache: false,
success: function(json) {
$('.alert, .text-danger').remove();
$.ajax({
url: 'index.php?route=product/product/quote',
type: 'post',
data: 'country_id=&zone_id=',
dataType: 'json',
cache: false,
beforeSend: function() {
$('#product-shipping #shipping-info').fadeOut('slow');
},
complete: function() {
$('#product-shipping #shipping-info').fadeIn('slow');
},
success: function(json) {
if (json['error']) {
if (json['error']['warning']) {
$('.breadcrumb').after(' ' + json['error']['warning'] + '
');$('html, body').animate({ scrollTop: 0 }, 'slow');
}if (json['error']['country']) {
$('select[name=\'country_id\']').after('' + json['error']['country'] + '
');
}if (json['error']['zone']) {
$('select[name=\'zone_id\']').after('' + json['error']['zone'] + '
');
}
}if (json['shipping_method']) {
html = '';
for (i in json['shipping_method']) {
if (!json['shipping_method'][i]['error']) {
for (j in json['shipping_method'][i]['quote']) {
html += '';
html += '
';
}
} else {
html += '';
if (json['shipping_method'][i]['quote'][j]['logo']) {
html += '
';
}
html += '' + json['shipping_method'][i]['quote'][j]['title'];
if (json['shipping_method'][i]['quote'][j]['desc']) {
html += '' + json['shipping_method'][i]['quote'][j]['desc'] + '';
}
html += '
';
html += '' + json['shipping_method'][i]['quote'][j]['text'] + '
';
html += '' + json['shipping_method'][i]['error'] + '
';
}
}$('#product-shipping #shipping-info').html(html);}
}
});
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
}$(document).ready(function(){var pselector = '#product';
$(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\'], '+pselector+' input[type=\'checkbox\'], '+pselector+' select:not([name=\'country_id\']), '+pselector+' textarea').change(function() {
updateProductShipping();
});$('#product-shipping select[name=\'country_id\']').on('change', function() {
$.ajax({
url: 'index.php?route=product/product/country&country_id=' + this.value,
dataType: 'json',
beforeSend: function() {
$('#product-shipping select[name=\'country_id\']').after(' ');
},
complete: function() {
$('.fa-spin').remove();
},
success: function(json) {
html = '';if (json['zone'] && json['zone'] != '') {
for (i = 0; i < json['zone'].length; i++) {
html += '';
}
} else {
html += '';
}$('#product-shipping select[name=\'zone_id\']').html(html);
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});$('#product-shipping .sp-block-title').on('click', function() {
$(this).toggleClass('sp-open');
$('#product-shipping .sp-data-block').slideToggle('slow');
});$('#product-shipping select[name=\'country_id\']').trigger('change');if (window.matchMedia("(max-width: 500px)").matches) {
$('#product-shipping .sp-block-title').removeClass('sp-open');
$('#product-shipping .sp-data-block').css({'display':'block'});
}
updateProductShipping();
});
script>
function updateProductShipping() {
var pselector = '#product';
$.ajax({
url: 'index.php?route=product/product/quoteProduct',
type: 'post',
data: $(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\']:checked, '+pselector+' input[type=\'checkbox\']:checked, '+pselector+' select, '+pselector+' textarea'),
dataType: 'json',
cache: false,
success: function(json) {
$('.alert, .text-danger').remove();
$.ajax({
url: 'index.php?route=product/product/quote',
type: 'post',
data: 'country_id=&zone_id=',
dataType: 'json',
cache: false,
beforeSend: function() {
$('#product-shipping #shipping-info').fadeOut('slow');
},
complete: function() {
$('#product-shipping #shipping-info').fadeIn('slow');
},
success: function(json) {
if (json['error']) {
if (json['error']['warning']) {
$('.breadcrumb').after(' ' + json['error']['warning'] + '
');$('html, body').animate({ scrollTop: 0 }, 'slow');
}if (json['error']['country']) {
$('select[name=\'country_id\']').after('' + json['error']['country'] + '
');
}if (json['error']['zone']) {
$('select[name=\'zone_id\']').after('' + json['error']['zone'] + '
');
}
}if (json['shipping_method']) {
html = '';
for (i in json['shipping_method']) {
if (!json['shipping_method'][i]['error']) {
for (j in json['shipping_method'][i]['quote']) {
html += '';
html += '
';
}
} else {
html += '';
if (json['shipping_method'][i]['quote'][j]['logo']) {
html += '
';
}
html += '' + json['shipping_method'][i]['quote'][j]['title'];
if (json['shipping_method'][i]['quote'][j]['desc']) {
html += '' + json['shipping_method'][i]['quote'][j]['desc'] + '';
}
html += '
';
html += '' + json['shipping_method'][i]['quote'][j]['text'] + '
';
html += '' + json['shipping_method'][i]['error'] + '
';
}
}$('#product-shipping #shipping-info').html(html);}
}
});
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
}$(document).ready(function(){var pselector = '#product';
$(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\'], '+pselector+' input[type=\'checkbox\'], '+pselector+' select:not([name=\'country_id\']), '+pselector+' textarea').change(function() {
updateProductShipping();
});$('#product-shipping select[name=\'country_id\']').on('change', function() {
$.ajax({
url: 'index.php?route=product/product/country&country_id=' + this.value,
dataType: 'json',
beforeSend: function() {
$('#product-shipping select[name=\'country_id\']').after(' ');
},
complete: function() {
$('.fa-spin').remove();
},
success: function(json) {
html = '';if (json['zone'] && json['zone'] != '') {
for (i = 0; i < json['zone'].length; i++) {
html += '';
}
} else {
html += '';
}$('#product-shipping select[name=\'zone_id\']').html(html);
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});$('#product-shipping .sp-block-title').on('click', function() {
$(this).toggleClass('sp-open');
$('#product-shipping .sp-data-block').slideToggle('slow');
});$('#product-shipping select[name=\'country_id\']').trigger('change');if (window.matchMedia("(max-width: 500px)").matches) {
$('#product-shipping .sp-block-title').removeClass('sp-open');
$('#product-shipping .sp-data-block').css({'display':'block'});
}
updateProductShipping();
});
script>
function updateProductShipping() {
var pselector = '#product';
$.ajax({
url: 'index.php?route=product/product/quoteProduct',
type: 'post',
data: $(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\']:checked, '+pselector+' input[type=\'checkbox\']:checked, '+pselector+' select, '+pselector+' textarea'),
dataType: 'json',
cache: false,
success: function(json) {
$('.alert, .text-danger').remove();
$.ajax({
url: 'index.php?route=product/product/quote',
type: 'post',
data: 'country_id=&zone_id=',
dataType: 'json',
cache: false,
beforeSend: function() {
$('#product-shipping #shipping-info').fadeOut('slow');
},
complete: function() {
$('#product-shipping #shipping-info').fadeIn('slow');
},
success: function(json) {
if (json['error']) {
if (json['error']['warning']) {
$('.breadcrumb').after(' ' + json['error']['warning'] + '
');$('html, body').animate({ scrollTop: 0 }, 'slow');
}if (json['error']['country']) {
$('select[name=\'country_id\']').after('' + json['error']['country'] + '
');
}if (json['error']['zone']) {
$('select[name=\'zone_id\']').after('' + json['error']['zone'] + '
');
}
}if (json['shipping_method']) {
html = '';
for (i in json['shipping_method']) {
if (!json['shipping_method'][i]['error']) {
for (j in json['shipping_method'][i]['quote']) {
html += '';
html += '
';
}
} else {
html += '';
if (json['shipping_method'][i]['quote'][j]['logo']) {
html += '
';
}
html += '' + json['shipping_method'][i]['quote'][j]['title'];
if (json['shipping_method'][i]['quote'][j]['desc']) {
html += '' + json['shipping_method'][i]['quote'][j]['desc'] + '';
}
html += '
';
html += '' + json['shipping_method'][i]['quote'][j]['text'] + '
';
html += '' + json['shipping_method'][i]['error'] + '
';
}
}$('#product-shipping #shipping-info').html(html);}
}
});
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
}$(document).ready(function(){var pselector = '#product';
$(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\'], '+pselector+' input[type=\'checkbox\'], '+pselector+' select:not([name=\'country_id\']), '+pselector+' textarea').change(function() {
updateProductShipping();
});$('#product-shipping select[name=\'country_id\']').on('change', function() {
$.ajax({
url: 'index.php?route=product/product/country&country_id=' + this.value,
dataType: 'json',
beforeSend: function() {
$('#product-shipping select[name=\'country_id\']').after(' ');
},
complete: function() {
$('.fa-spin').remove();
},
success: function(json) {
html = '';if (json['zone'] && json['zone'] != '') {
for (i = 0; i < json['zone'].length; i++) {
html += '';
}
} else {
html += '';
}$('#product-shipping select[name=\'zone_id\']').html(html);
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});$('#product-shipping .sp-block-title').on('click', function() {
$(this).toggleClass('sp-open');
$('#product-shipping .sp-data-block').slideToggle('slow');
});$('#product-shipping select[name=\'country_id\']').trigger('change');if (window.matchMedia("(max-width: 500px)").matches) {
$('#product-shipping .sp-block-title').removeClass('sp-open');
$('#product-shipping .sp-data-block').css({'display':'block'});
}
updateProductShipping();
});
script>
function updateProductShipping() {
var pselector = '#product';
$.ajax({
url: 'index.php?route=product/product/quoteProduct',
type: 'post',
data: $(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\']:checked, '+pselector+' input[type=\'checkbox\']:checked, '+pselector+' select, '+pselector+' textarea'),
dataType: 'json',
cache: false,
success: function(json) {
$('.alert, .text-danger').remove();
$.ajax({
url: 'index.php?route=product/product/quote',
type: 'post',
data: 'country_id=&zone_id=',
dataType: 'json',
cache: false,
beforeSend: function() {
$('#product-shipping #shipping-info').fadeOut('slow');
},
complete: function() {
$('#product-shipping #shipping-info').fadeIn('slow');
},
success: function(json) {
if (json['error']) {
if (json['error']['warning']) {
$('.breadcrumb').after(' ' + json['error']['warning'] + '
');$('html, body').animate({ scrollTop: 0 }, 'slow');
}if (json['error']['country']) {
$('select[name=\'country_id\']').after('' + json['error']['country'] + '
');
}if (json['error']['zone']) {
$('select[name=\'zone_id\']').after('' + json['error']['zone'] + '
');
}
}if (json['shipping_method']) {
html = '';
for (i in json['shipping_method']) {
if (!json['shipping_method'][i]['error']) {
for (j in json['shipping_method'][i]['quote']) {
html += '';
html += '
';
}
} else {
html += '';
if (json['shipping_method'][i]['quote'][j]['logo']) {
html += '
';
}
html += '' + json['shipping_method'][i]['quote'][j]['title'];
if (json['shipping_method'][i]['quote'][j]['desc']) {
html += '' + json['shipping_method'][i]['quote'][j]['desc'] + '';
}
html += '
';
html += '' + json['shipping_method'][i]['quote'][j]['text'] + '
';
html += '' + json['shipping_method'][i]['error'] + '
';
}
}$('#product-shipping #shipping-info').html(html);}
}
});
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
}$(document).ready(function(){var pselector = '#product';
$(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\'], '+pselector+' input[type=\'checkbox\'], '+pselector+' select:not([name=\'country_id\']), '+pselector+' textarea').change(function() {
updateProductShipping();
});$('#product-shipping select[name=\'country_id\']').on('change', function() {
$.ajax({
url: 'index.php?route=product/product/country&country_id=' + this.value,
dataType: 'json',
beforeSend: function() {
$('#product-shipping select[name=\'country_id\']').after(' ');
},
complete: function() {
$('.fa-spin').remove();
},
success: function(json) {
html = '';if (json['zone'] && json['zone'] != '') {
for (i = 0; i < json['zone'].length; i++) {
html += '';
}
} else {
html += '';
}$('#product-shipping select[name=\'zone_id\']').html(html);
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});$('#product-shipping .sp-block-title').on('click', function() {
$(this).toggleClass('sp-open');
$('#product-shipping .sp-data-block').slideToggle('slow');
});$('#product-shipping select[name=\'country_id\']').trigger('change');if (window.matchMedia("(max-width: 500px)").matches) {
$('#product-shipping .sp-block-title').removeClass('sp-open');
$('#product-shipping .sp-data-block').css({'display':'block'});
}
updateProductShipping();
});
script>
function updateProductShipping() {
var pselector = '#product';
$.ajax({
url: 'index.php?route=product/product/quoteProduct',
type: 'post',
data: $(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\']:checked, '+pselector+' input[type=\'checkbox\']:checked, '+pselector+' select, '+pselector+' textarea'),
dataType: 'json',
cache: false,
success: function(json) {
$('.alert, .text-danger').remove();
$.ajax({
url: 'index.php?route=product/product/quote',
type: 'post',
data: 'country_id=&zone_id=',
dataType: 'json',
cache: false,
beforeSend: function() {
$('#product-shipping #shipping-info').fadeOut('slow');
},
complete: function() {
$('#product-shipping #shipping-info').fadeIn('slow');
},
success: function(json) {
if (json['error']) {
if (json['error']['warning']) {
$('.breadcrumb').after(' ' + json['error']['warning'] + '
');$('html, body').animate({ scrollTop: 0 }, 'slow');
}if (json['error']['country']) {
$('select[name=\'country_id\']').after('' + json['error']['country'] + '
');
}if (json['error']['zone']) {
$('select[name=\'zone_id\']').after('' + json['error']['zone'] + '
');
}
}if (json['shipping_method']) {
html = '';
for (i in json['shipping_method']) {
if (!json['shipping_method'][i]['error']) {
for (j in json['shipping_method'][i]['quote']) {
html += '';
html += '
';
}
} else {
html += '';
if (json['shipping_method'][i]['quote'][j]['logo']) {
html += '
';
}
html += '' + json['shipping_method'][i]['quote'][j]['title'];
if (json['shipping_method'][i]['quote'][j]['desc']) {
html += '' + json['shipping_method'][i]['quote'][j]['desc'] + '';
}
html += '
';
html += '' + json['shipping_method'][i]['quote'][j]['text'] + '
';
html += '' + json['shipping_method'][i]['error'] + '
';
}
}$('#product-shipping #shipping-info').html(html);}
}
});
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
}$(document).ready(function(){var pselector = '#product';
$(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\'], '+pselector+' input[type=\'checkbox\'], '+pselector+' select:not([name=\'country_id\']), '+pselector+' textarea').change(function() {
updateProductShipping();
});$('#product-shipping select[name=\'country_id\']').on('change', function() {
$.ajax({
url: 'index.php?route=product/product/country&country_id=' + this.value,
dataType: 'json',
beforeSend: function() {
$('#product-shipping select[name=\'country_id\']').after(' ');
},
complete: function() {
$('.fa-spin').remove();
},
success: function(json) {
html = '';if (json['zone'] && json['zone'] != '') {
for (i = 0; i < json['zone'].length; i++) {
html += '';
}
} else {
html += '';
}$('#product-shipping select[name=\'zone_id\']').html(html);
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});$('#product-shipping .sp-block-title').on('click', function() {
$(this).toggleClass('sp-open');
$('#product-shipping .sp-data-block').slideToggle('slow');
});$('#product-shipping select[name=\'country_id\']').trigger('change');if (window.matchMedia("(max-width: 500px)").matches) {
$('#product-shipping .sp-block-title').removeClass('sp-open');
$('#product-shipping .sp-data-block').css({'display':'block'});
}
updateProductShipping();
});
script>
function updateProductShipping() {
var pselector = '#product';
$.ajax({
url: 'index.php?route=product/product/quoteProduct',
type: 'post',
data: $(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\']:checked, '+pselector+' input[type=\'checkbox\']:checked, '+pselector+' select, '+pselector+' textarea'),
dataType: 'json',
cache: false,
success: function(json) {
$('.alert, .text-danger').remove();
$.ajax({
url: 'index.php?route=product/product/quote',
type: 'post',
data: 'country_id=&zone_id=',
dataType: 'json',
cache: false,
beforeSend: function() {
$('#product-shipping #shipping-info').fadeOut('slow');
},
complete: function() {
$('#product-shipping #shipping-info').fadeIn('slow');
},
success: function(json) {
if (json['error']) {
if (json['error']['warning']) {
$('.breadcrumb').after(' ' + json['error']['warning'] + '
');$('html, body').animate({ scrollTop: 0 }, 'slow');
}if (json['error']['country']) {
$('select[name=\'country_id\']').after('' + json['error']['country'] + '
');
}if (json['error']['zone']) {
$('select[name=\'zone_id\']').after('' + json['error']['zone'] + '
');
}
}if (json['shipping_method']) {
html = '';
for (i in json['shipping_method']) {
if (!json['shipping_method'][i]['error']) {
for (j in json['shipping_method'][i]['quote']) {
html += '';
html += '
';
}
} else {
html += '';
if (json['shipping_method'][i]['quote'][j]['logo']) {
html += '
';
}
html += '' + json['shipping_method'][i]['quote'][j]['title'];
if (json['shipping_method'][i]['quote'][j]['desc']) {
html += '' + json['shipping_method'][i]['quote'][j]['desc'] + '';
}
html += '
';
html += '' + json['shipping_method'][i]['quote'][j]['text'] + '
';
html += '' + json['shipping_method'][i]['error'] + '
';
}
}$('#product-shipping #shipping-info').html(html);}
}
});
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
}$(document).ready(function(){var pselector = '#product';
$(pselector+' input[type=\'text\'], '+pselector+' input[type=\'hidden\'], '+pselector+' input[type=\'radio\'], '+pselector+' input[type=\'checkbox\'], '+pselector+' select:not([name=\'country_id\']), '+pselector+' textarea').change(function() {
updateProductShipping();
});$('#product-shipping select[name=\'country_id\']').on('change', function() {
$.ajax({
url: 'index.php?route=product/product/country&country_id=' + this.value,
dataType: 'json',
beforeSend: function() {
$('#product-shipping select[name=\'country_id\']').after(' ');
},
complete: function() {
$('.fa-spin').remove();
},
success: function(json) {
html = '';if (json['zone'] && json['zone'] != '') {
for (i = 0; i < json['zone'].length; i++) {
html += '';
}
} else {
html += '';
}$('#product-shipping select[name=\'zone_id\']').html(html);
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});$('#product-shipping .sp-block-title').on('click', function() {
$(this).toggleClass('sp-open');
$('#product-shipping .sp-data-block').slideToggle('slow');
});$('#product-shipping select[name=\'country_id\']').trigger('change');if (window.matchMedia("(max-width: 500px)").matches) {
$('#product-shipping .sp-block-title').removeClass('sp-open');
$('#product-shipping .sp-data-block').css({'display':'block'});
}
updateProductShipping();
});