Warning: unlink(/home/vintagev/storagedir/cache/cache.product.cart.0.0.07151e76cdba73849e0d7d360c.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.15253fb3d03dfd7f4793e0bc30.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.24eaf8ec61c32803bccb207f37.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.310acc7ed763692f81bfefcd35.0.0.1741907868): 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.36e4847b3ebd7944318674f1dc.0.0.1741907862): 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.37d53d099058417a991f19afc2.0.0.1741907850): 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.3dfe85baa369eb491c730f38c7.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.50d491b86df24a1e5cdb7f8012.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.5504cf45185264fad7d5aaa2fa.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.5b262d3f7e72984154582cb579.0.0.1741907841): 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.5c94d3a540a3e1db8f1032ab74.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.5ee1cfc3e4ea67ab349effcdab.0.0.1741907856): 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.6123da587d05320f17517eabc9.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.62159fbc4836e78781711cff40.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.6ca1be1f885c933df5b3c9470e.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.709b88a8d038a049d28d089c15.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.7520f1ca131b02f793e806101d.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.856a8cd2155a7ece6f2d4f02d8.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.8d56a1229719d9f2855eeaa743.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.8f6095b4c9231fc7a68a75d2f0.0.0.1741907862): 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.9435a20c1a01f66f9aa45579dc.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.955fa50f7f105aea7e9d1851e8.0.0.1741907849): 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.99bc9ebfadb668366b95bee6a6.0.0.1741907834): 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.9e8be24542ab6438dd63895928.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.a0878af6049f5141f468e77fdb.0.0.1741907849): 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.a2b8342057db488eb727858973.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.a7154f4b09401654aa581359a5.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.aaba99c5db4debf26b06247f8f.0.0.1741907842): 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.ac61a434b833da6d8244b655e5.0.0.1741907842): 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.b09f4fa654827d65cd614f167c.0.0.1741907838): 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.b59c88902cb75fa874e8ee2644.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.c09f75721beb3c2a5bac9b5fe1.0.0.1741907854): 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.c5ee8d40097f0b4dbd1109cfe4.0.0.1741907834): 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.d256c31a5482530b8cc41a4fa6.0.0.1741907868): 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.e514fe94410761c542bcef486a.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.f0754b2cf66a3dc5623976817c.0.0.1741907854): 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.f39d3fcf2e31e7600622bf8af6.0.0.1741907857): 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=2287',
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);
});
}