Warning: unlink(/home/vintagev/storagedir/cache/cache.af-category.6a41dae08a2c719a4bf4b8c39f8e7b74.1741972469): 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.d12f60767e5025ea451b3ccfc3d397b5.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.af-filter.d12f60767e5025ea451b3ccfc3d397b5.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.af-filter.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.26349c5a366673ccab22b7a2ea5c521c.1741972469): 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.44f0f66fd69301309eecf7b10a7b9d0e.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.category.list.0.1.1.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.category.list.0.1.1.15.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.2.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.22.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.32.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.39.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.48.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.58.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.8.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.09a16e7df4da3a0fc593a0982b.0.0.1741972475): 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.0b0e91761ee3a0f1b3d36d73eb.0.0.1741972463): 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.1262da46657450c05ac7c40d08.0.0.1741972440): 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.13faf4b3df3bcd1a4d42c36d38.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.22b14577ab14c633aa5885cd1b.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.29e241674631d381e6696cdcd6.0.0.1741972441): 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.33802e547a445865616e69b6af.0.0.1741972482): 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.3dcf10f9c4564e1e2685e8e69e.0.0.1741972496): 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.42783d1d73417546cfe52ba924.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.52214f524b1e79ea2135954368.0.0.1741972499): 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.664ebebb7e1c410fad781c0189.0.0.1741972499): 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.6800f634021a24640e7f876494.0.0.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.product.cart.0.0.6d5826825fe581e4a631b3d2e2.0.0.1741972478): 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.722936309561ac3eaf67a80e4c.0.0.1741972480): 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.869dddef1390c224f30d7d8079.0.0.1741972437): 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.8aec56e9dfdf17c6967e59de13.0.0.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.product.cart.0.0.9ad24283b6fb15452d7831055c.0.0.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.product.cart.0.0.a18ab6776867f18bd66191756c.0.0.1741972480): 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.a36b6469cff13eca63ce56963c.0.0.1741972493): 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.a43df47f40a9987075e379e401.0.0.1741972445): 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.b13fe647e60d73e57c714c7e37.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.b6d5db7460a714382a962fd0f8.0.0.1741972477): 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.b9267121ef70973d6c0cf88213.0.0.1741972473): 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.cc7cc3f276c598421e1fe4e3c8.0.0.1741972457): 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.ced84bc42c62504fa570f526b5.0.0.1741972460): 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.dc3e1cb1b323b65b3b3967c481.0.0.1741972469): 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.e55dc49e077d82cd593d0cbe50.0.0.1741972486): 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.ea1956782bd123db398aafdca6.0.0.1741972439): 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.ef23b4f7b24f8cd50f255ce22b.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.f9a9af2e0eb30634f4238e7003.0.0.1741972480): 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=1965',
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);
});
}