Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-category.2eb16c12c665c5208fa9de382d9f894d.1773727169): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-category.424461fc1664f5becd401dd791d4068e.1773727170): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-category.7a1362e889f2ca16f904dcc375f1db7c.1773727166): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-category.8ab67fa6f4cb82dcbaa479a0eaa03f70.1773727168): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-filter.058c38bc1a13a9db10293e4643d886da.1773727166): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-filter.2eb16c12c665c5208fa9de382d9f894d.1773727169): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-manufacturer.8d9ce0dfed3dd859fcec3312e4ffc29c.1773727168): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-manufacturer.b8ac6c42aaaa62002325f9d85015c5ac.1773727169): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-option.48ab82598f802c8484e1ef0a6708e180.1773727170): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-option.8d9ce0dfed3dd859fcec3312e4ffc29c.1773727168): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-option.ad240357693d0f4a8a07eabac88959f1.1773727166): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-price.2365cefb010557b2f89508ccaeb81450.1773727170): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-price.386af254f6ea2045011c2c0d9263534f.1773727169): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-price.5978969bafd8e09f27161f6f8ce48352.1773727168): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-price.59d4f89b62da89e979dcb769b9269d5a.1773727169): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-price.8fccb159c6da0136d35c15b61531e845.1773727166): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-search.1f65fdfb47a4a7f93ac840c41c989f89.1773727169): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-search.52b09e9eec9263d779f4f783e992badf.1773727170): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-search.707c41db080585d17c954b74083e21f0.1773727166): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-search.ad240357693d0f4a8a07eabac88959f1.1773727166): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: unlink(/var/www/vhosts/tosodouliko.gr/oc_tosodouliko/cache/cache.af-search.b8ac6c42aaaa62002325f9d85015c5ac.1773727169): No such file or directory in /var/www/vhosts/tosodouliko.gr/httpdocs/system/library/cache/file.php on line 17Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/tosodouliko.gr/httpdocs/system/framework.php:42) in /var/www/vhosts/tosodouliko.gr/httpdocs/catalog/controller/startup/session.php on line 25Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/tosodouliko.gr/httpdocs/system/framework.php:42) in /var/www/vhosts/tosodouliko.gr/oc_tosodouliko/modification/catalog/controller/startup/startup.php on line 110Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/tosodouliko.gr/httpdocs/system/framework.php:42) in /var/www/vhosts/tosodouliko.gr/oc_tosodouliko/modification/catalog/controller/startup/startup.php on line 170Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/tosodouliko.gr/httpdocs/system/framework.php:42) in /var/www/vhosts/tosodouliko.gr/httpdocs/catalog/controller/extension/module/live_options.php on line 211 var price_with_options_ajax_call = function() { $.ajax({ type: 'POST', url: 'index.php?route=extension/module/live_options&product_id=504', 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) { animation_on_change_price_with_options('#content .price-tax-live', json.new_price.tax); } if ($('#content .price-new-live').length > 0 && json.new_price.special) { animation_on_change_price_with_options('#content .price-new-live', json.new_price.special); } if ($('#content .price-old-live').length > 0 && json.new_price.price) { 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); } } }, 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 ($('#content input[name=\'quantity\']').val() > 1) { 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(); }); } // Support spinner_quantity if( $('.number-spinner button').length ){ $(document).on('click', '.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); }); }