Warning: unlink(/home/vintagev/storagedir/cache/cache.af-category.d10e59db523e04631d707046a4ba7224.1741972468): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.af-category.f9e78c8f881bbfc646c0d9ef59490941.1741972488): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.af-search.1f524ae9fe27e244d93168c0cf46ab05.1741972488): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.af-search.40ce94bd92a66f1f52b0056592f25b80.1741972487): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.category.list.0.1.1.1.1741972495): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.category.list.0.1.1.17.1741972495): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.category.list.0.1.1.20.1741972495): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.category.list.0.1.1.27.1741972495): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.category.list.0.1.1.33.1741972495): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.category.list.0.1.1.41.1741972488): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.category.list.0.1.1.55.1741972495): No such file or directory in /home/vintagev/public_html/system/library/cache/file.php on line 17Warning: unlink(/home/vintagev/storagedir/cache/cache.category.list.0.1.1.65.1741972495): 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.072c04bf3ff0e8eb005ede705a.0.0.1741972444): 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.0e725206281e21b7dfb00055d1.0.0.1741972456): 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.1332eb72e7f5ecd9540cef74b6.0.0.1741972466): 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.1b4849c057fad834cfccf6235c.0.0.1741972443): 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.2837ae4d935888e0fb834563d5.0.0.1741972497): 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.331ca7c2d0a1a1f3a25717e935.0.0.1741972503): 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.3a0372deae5aaff8ee503e16f4.0.0.1741972484): 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.425572b830ed6e1212a666d645.0.0.1741972448): 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.4372c8a37cf345c588299edd94.0.0.1741972491): 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.66eb8fc564f8b8e220cabbc49b.0.0.1741972502): 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.6c0c4419b55f5754defd0aa8f2.0.0.1741972507): 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.6fae19d1b594990016170a2d8c.0.0.1741972451): 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.8cbaa0b6569228a272c9202b88.0.0.1741972461): 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.9e092616e714fc0fc380a0d193.0.0.1741972472): 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.a34c9243842e099b1ce2e41314.0.0.1741972448): 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.aa1b84e81b49a14bdecdb63d2f.0.0.1741972495): 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.b6df4b1bc50ba3ec79cc9f8d17.0.0.1741972459): 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.c51a1c8c04df1069e3876abef3.0.0.1741972481): 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.cc895cb7219cba8b61f37aa5db.0.0.1741972453): 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.d31f554f689e4b34044188da41.0.0.1741972436): 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.e3298c679776670e5f9c4473af.0.0.1741972465): 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.e81aabe8981073265ba702fb1d.0.0.1741972488): 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.ef1f4e2cb9c4928c654a45c52f.0.0.1741972500): 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.f2db47e14bd80d5c61738e6744.0.0.1741972434): 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.f91974642e0444a796d2c5da24.0.0.1741972453): 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=2574',
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);
});
}