Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.2541d5895b6591a707594fb411.0.0.1741908093): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.43ccb4d7b990845e36ad78a55a.0.0.1741908071): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.4b40bcbfde2cce965f9619045d.0.0.1741908096): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.4e346a86481834e208f2f7fb56.0.0.1741908077): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.579e3ad0c872d3e490652677d7.0.0.1741908070): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.5ffc4c531038a0d0dfb4195bc0.0.0.1741908073): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.6e2eee49dc700f11fe2b713b51.0.0.1741908078): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.745fcb47a3c056c975f08980b7.0.0.1741908085): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.9c71714cde27545027798eee7f.0.0.1741908082): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.9e6604a76780572fde13ff0343.0.0.1741908084): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.b316d1faa551aa5010bae12b9c.0.0.1741908090): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.bc5fce19907739aa2eaf3d138c.0.0.1741908076): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.bedccfb7dbe09e3f127e39fccd.0.0.1741908088): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.c0794eaf9d246f5ad88ba10d9e.0.0.1741908068): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.c8cdaa7876678080f7ef486401.0.0.1741908094): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.cae09a675817bceabb393764cf.0.0.1741908087): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.d3b73f099216962a86b586fc1d.0.0.1741908094): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.dd88360cde13dee3a39a58f8d7.0.0.1741908095): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.df96f530eea9d2862659ef6eb8.0.0.1741908092): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.e855098725a0d4f550eba15148.0.0.1741908098): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.f08d1dcd6231494a8a06bd1c4a.0.0.1741908083): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.f42d3df7994d98c2db0da4e430.0.0.1741908093): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.f8cb3a6a216eaa655e362bcadd.0.0.1741908079): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.f980db0d183cb7f8969deef2f1.0.0.1741908097): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.fb7b476628dab92964ef0975a7.0.0.1741908088): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: Cannot modify header information - headers already sent by (output started at /home/vintagev/public_html/system/framework.php:43) in /home/vintagev/public_html/catalog/controller/startup/session.php on line 47Warning: Cannot modify header information - headers already sent by (output started at /home/vintagev/public_html/system/framework.php:43) in /home/vintagev/public_html/catalog/controller/startup/startup.php on line 104Warning: Cannot modify header information - headers already sent by (output started at /home/vintagev/public_html/system/framework.php:43) in /home/vintagev/public_html/catalog/controller/startup/startup.php on line 165 var price_with_options_ajax_call = function() {
$.ajax({
type: 'POST',
url: 'index.php?route=extension/module/live_options&product_id=3174',
data: $('#content input[type=\'text\'], #content input[type=\'number\'], #content input[type=\'hidden\'], #content input[type=\'radio\']:checked, #content input[type=\'checkbox\']:checked, #content select, #content textarea'),
dataType: 'json',
beforeSend: function() {
// you can add smth useful here
},
complete: function() {
// you can add smth useful here
},
success: function(json) {
if (json.success) {
if ($('#content .price-tax-live').length > 0 && json.new_price.tax) {
if (json.show_without_tax_first)
animation_on_change_price_with_options('#content .price-tax-live', json.new_price.special);
else
animation_on_change_price_with_options('#content .price-tax-live', json.new_price.tax);
}
if (json.show_without_tax_first)
animation_on_change_price_with_options('#content .price-new-live', json.new_price.tax);
else
animation_on_change_price_with_options('#content .price-new-live', json.new_price.special);
if (json.new_price.show_discount == 0 || json.new_price.special == json.new_price.price) {
animation_on_change_price_with_options('#content .price-old-live', '');
} else {
if (json.show_without_tax_first)
animation_on_change_price_with_options('#content .price-old-live', json.new_price.list_tax);
else
animation_on_change_price_with_options('#content .price-old-live', json.new_price.price);
}
// points
if ($('#content .spend-points-live').length > 0 && json.new_price.points) {
animation_on_change_price_with_options('#content .spend-points-live', json.new_price.points);
}
// reward
if ($('#content .get-reward-live').length > 0 && json.new_price.reward) {
animation_on_change_price_with_options('#content .get-reward-live', json.new_price.reward);
}
// discount
if ($('#content .discount-live').length > 0 && json.new_price.discount) {
animation_on_change_price_with_options('#content .discount-live', json.new_price.discount + '% OFF');
}
// stock_status
if ($('#content .stock-live').length > 0) {
animation_on_change_status_with_options('#content .stock-live', json.stock_status, json.stock_color);
}
_cart_enabled = json.cart_enabled;
if (_cart_enabled == false || json.can_buy == false) {
$('#button-cart').attr("disabled", true);
} else {
$('#button-cart').attr("disabled", false);
}
}
},
error: function(error) {
console.log('error: ' + error.responseText);
}
});
}
var animation_on_change_price_with_options = function(selector_class_or_id, new_html_content) {
$(selector_class_or_id).fadeOut(150, function() {
$(this).html(new_html_content).fadeIn(50);
});
}
var animation_on_change_status_with_options = function(selector_class_or_id, status, color) {
$(selector_class_or_id).fadeOut(150, function() {
$(this).html(status).fadeIn(50);
$(selector_class_or_id).css("color", color);
});
}
if ($('#content input[name=\'quantity\']').val() > 0)
{
price_with_options_ajax_call();
}
if ( jQuery.isFunction(jQuery.fn.on) )
{
$(document).on('change', '#content input[type=\'text\'], #content input[type=\'number\'], #content input[type=\'hidden\'], #content input[type=\'radio\']:checked, #content input[type=\'checkbox\'], #content select, #content textarea, #content input[name=\'quantity\']', function () {
price_with_options_ajax_call();
});
$(document).on('input', '#content input[type=\'text\'], #content input[type=\'number\'], #content input[name=\'quantity\']', function () {
price_with_options_ajax_call();
});
}
else
{
$('#content input[type=\'text\'], #content input[type=\'number\'], #content input[type=\'hidden\'], #content input[type=\'radio\']:checked, #content input[type=\'checkbox\'], #content select, #content textarea, #content input[name=\'quantity\']').live('change', function() {
price_with_options_ajax_call();
});
}
$(document).on('click', '#product-product .number-spinner a', function () {
setTimeout(function() {
price_with_options_ajax_call();
}, 100);
});
// Support spinner_quantity
if( $('#product-product .number-spinner button').length ){
$(document).on('click', '#product-product .number-spinner button', function () {
setTimeout(function() {
price_with_options_ajax_call();
}, 100);
});
}
// Support bt_claudine
if( $('.increase').length || $('.decrease').length ){
$(document).on('click', '.increase', function () {
setTimeout(function() {
price_with_options_ajax_call();
}, 100);
});
$(document).on('click', '.decrease', function () {
setTimeout(function() {
price_with_options_ajax_call();
}, 100);
});
}
// Support Pav theme
if( $('.quantity-adder .add-action').length ){
$(".quantity-adder .add-action").bind( "mouseup touchend", function(e){
setTimeout(function() {
price_with_options_ajax_call();
}, 100);
});
}
// Support vitalia
if( $('#q_up').length || $('#q_down').length ){
$('#q_up,#q_down').click(function(){
setTimeout(function() {
price_with_options_ajax_call();
}, 100);
});
}
// Support journal2
if( $('.qty .journal-stepper').length ){
$(".qty .journal-stepper").bind( "mouseup touchend", function(e){
setTimeout(function() {
price_with_options_ajax_call();
}, 100);
});
}