Warning: unlink(/home/ps321793/iteplo.com/www/system/storage/cache/imdbo/cache.0acbaa48274a11312ef217e7c3b9a67e4fd388c282.1785972889): No such file or directory in /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php on line 30
Warning: unlink(/home/ps321793/iteplo.com/www/system/storage/cache/imdbo/cache.21784076846b04365aa231fe4c91c030f7a5036e1957.1785972890): No such file or directory in /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php on line 30
Warning: unlink(/home/ps321793/iteplo.com/www/system/storage/cache/imdbo/cache.2de228f1a9f29eeac10e1c88de712f5281f33fa81957.1785972890): No such file or directory in /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php on line 30
Warning: unlink(/home/ps321793/iteplo.com/www/system/storage/cache/imdbo/cache.35ea9f3ee02b471d3565690d39465cb61c06979c1957.1785972890): No such file or directory in /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php on line 30
Warning: unlink(/home/ps321793/iteplo.com/www/system/storage/cache/imdbo/cache.3d01129a229111247b84e4ce1c2347beb17c02801958.1785972890): No such file or directory in /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php on line 30
Warning: unlink(/home/ps321793/iteplo.com/www/system/storage/cache/imdbo/cache.472357e262ec7d601ed4aa05e3cb760dc8393bd4282.1785972889): No such file or directory in /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php on line 30
Warning: unlink(/home/ps321793/iteplo.com/www/system/storage/cache/imdbo/cache.5842c6a73a03f9bec698d1db6c11d0ad604de06e1957.1785972890): No such file or directory in /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php on line 30
Warning: unlink(/home/ps321793/iteplo.com/www/system/storage/cache/imdbo/cache.5ad0ad9f304f1cd249c7988609d326b11c9a8e541957.1785972890): No such file or directory in /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php on line 30
Warning: unlink(/home/ps321793/iteplo.com/www/system/storage/cache/imdbo/cache.71e441b2271180c4f40dd563a9279268ebcd9c851957.1785972890): No such file or directory in /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php on line 30
Warning: unlink(/home/ps321793/iteplo.com/www/system/storage/cache/imdbo/cache.74f1c73f9c1707263c1ae5a9b81a0775e9ff8f961957.1785972890): No such file or directory in /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php on line 30
Warning: unlink(/home/ps321793/iteplo.com/www/system/storage/cache/imdbo/cache.82394363845ac303c036a488cc98aae6c784560e1957.1785972889): No such file or directory in /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php on line 30
Warning: unlink(/home/ps321793/iteplo.com/www/system/storage/cache/imdbo/cache.96a4292ea8044925edea264a528e037d9528e1ac1957.1785972890): No such file or directory in /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php on line 30
Warning: unlink(/home/ps321793/iteplo.com/www/system/storage/cache/imdbo/cache.9f4bde2b4b2f81d1c6edfa0e2de8e8dab90092ca1957.1785972890): No such file or directory in /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php on line 30
Warning: unlink(/home/ps321793/iteplo.com/www/system/storage/cache/imdbo/cache.c611a114d0bdb30a73573e03aa29c73432e157cc1957.1785972889): No such file or directory in /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php on line 30
Warning: unlink(/home/ps321793/iteplo.com/www/system/storage/cache/imdbo/cache.c7a5592d9ffaa0ffe327e6d22b4c008cf46cf9351957.1785972890): No such file or directory in /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php on line 30
Warning: unlink(/home/ps321793/iteplo.com/www/system/storage/cache/imdbo/cache.cd3960b5c3cbb69445bd9d473dba110135a52091957.1785972889): No such file or directory in /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php on line 30
Warning: unlink(/home/ps321793/iteplo.com/www/system/storage/cache/imdbo/cache.db5bcb72eb276b1afedf5da3e51a386a2f1398821957.1785972890): No such file or directory in /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php on line 30
Warning: unlink(/home/ps321793/iteplo.com/www/system/storage/cache/imdbo/cache.e54dcaca9f8e68f0eebccdf1b0e788f3da7699401957.1785972890): No such file or directory in /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php on line 30
Warning: unlink(/home/ps321793/iteplo.com/www/system/storage/cache/imdbo/cache.e669e86595a55091b0926f4dc6fd3fbb452d3baf1957.1785972890): No such file or directory in /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php on line 30
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php:30) in /home/ps321793/iteplo.com/www/system/library/session.php on line 30
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php:30) in /home/ps321793/iteplo.com/www/system/library/session.php on line 30
Warning: Cannot modify header information - headers already sent by (output started at /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php:30) in /home/ps321793/iteplo.com/www/system/library/session.php on line 50
Warning: Cannot modify header information - headers already sent by (output started at /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php:30) in /home/ps321793/iteplo.com/www/system/storage/modification/catalog/controller/startup/startup.php on line 101
Warning: Cannot modify header information - headers already sent by (output started at /home/ps321793/iteplo.com/www/system/IMDBOptimizer/Cache/IMDBOCacheFile.php:30) in /home/ps321793/iteplo.com/www/system/storage/modification/catalog/controller/startup/startup.php on line 170
var price_with_options_ajax_call = function() {
$.ajax({
type: 'POST',
url: 'index.php?route=product/live_options/index&product_id=831',
data: $('#content input[type=\'text\'], #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) {
animation_on_change_price_with_options('#content .price-tax-live', json.new_price.tax);
}
if ($('#content .price').length > 0 && json.new_price.special) {
animation_on_change_price_with_options('#content .price', json.new_price.special);
}
if ($('#content .price-old').length > 0 && json.new_price.price) {
animation_on_change_price_with_options('#content .price-old', 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);
}
}
},
error: function(error) {
console.log('error: '+error);
}
});
}
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);
});
}
if ( jQuery.isFunction(jQuery.fn.on) )
{
$(document).on('change', '#content input[type=\'text\'], #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();
});
}
else
{
$('#content input[type=\'text\'], #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();
});
}
// Support spinner_quantity
if( $('.number-spinner button').length ){
$(document).on('click', '.number-spinner button', 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);
});
}