Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.105330903ed5b74d8eccb46f43.0.0.1741907843): 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.2b8031c421d75c9546924686e4.0.0.1741907860): 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.2da2c62d266ab27f324ea37c87.0.0.1741907865): 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.33631b70712e768fb29908bf7e.0.0.1741907847): 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.3518d6282bec0de14d576a3694.0.0.1741907839): 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.377749ecfc2d5e72eb0e2d7eea.0.0.1741907843): 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.3c7e577ba22e15724464e4f412.0.0.1741907855): 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.47d01c23272e93635a63a02ab7.0.0.1741907858): 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.4e926b83d4088da217cc66a55a.0.0.1741907848): 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.545bad5eec677c392a04a053aa.0.0.1741907863): 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.59542901ed846401ac40b74a10.0.0.1741907844): 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.5c46941064b67f16cb90126496.0.0.1741907858): 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.5db1bf305bd84df31fb5b107a9.0.0.1741907852): 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.60abafe8c760dde1c3e83bde21.0.0.1741907833): 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.6186db6cbded7daf798a698bc8.0.0.1741907836): 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.660dac5876fb8e5a8104c75971.0.0.1741907832): 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.6f44ee0f080e426ce0c83defdc.0.0.1741907835): 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.7ba9e9fb759a23b5792f778d10.0.0.1741907857): 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.89b70f7896235b2ad07055d2af.0.0.1741907851): 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.8d9ed3d946b6fbb30fde584b35.0.0.1741907853): 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.918a4a4c7a11ea1102306f8dba.0.0.1741907837): 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.9480fe81cdfd06ae21f048ef6d.0.0.1741907832): 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.99a4c0bd527a321f879250bb10.0.0.1741907855): 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.9c0a6777ecd0c1f0e59269f4bd.0.0.1741907858): 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.9e99f8022c07893a47d5ac606f.0.0.1741907871): 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.a1c7793b5e9d6feb78b00b9fc2.0.0.1741907864): 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.a636ee6ebaf3fce5043600c6a3.0.0.1741907846): 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.a82bd83829d027bdc0fdd78276.0.0.1741907869): 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.ab158bb43a19b01ca857befe6d.0.0.1741907840): 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.af4aa6211baefed2f8d279ac04.0.0.1741907867): 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.b1fa1a7fabfacbaec66a312e0b.0.0.1741907836): 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.bd79ed35d63c91047b786ff2ff.0.0.1741907870): 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.c358ca8fda95e28dad3388ee76.0.0.1741907869): 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.c78a4d13fad2f966ccf2bda9ba.0.0.1741907837): 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.d65ef9eb0624cddaded438fec4.0.0.1741907861): 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.d8aa531284aded0bfad8933284.0.0.1741907861): 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.e91f727071f10ab56107a703bc.0.0.1741907870): 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.f2ebaca0682a8f2ed0c2482cdf.0.0.1741907859): 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.f60b93bb65f02f03d67c6c5b2c.0.0.1741907850): 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=2851',
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);
});
}