Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProducts5efdca29981dd6702a390544f29d1ae7.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProducts7c68c8f9aba13288cd87b00f5e41f214.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProducts829a715ed516326ce9a82539270f8013.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProducts9357003f779bc0ec86155fb9bf27adad.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProducts99004f3f3d3e04f2dd7d09d8d8443ce7.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProducts9aa3f182b3bf151e0ff44c6fab72f514.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProducts9b212fc11ec755cb1b61198e78851bb8.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProducts9bdba418fa641ab3f4e3a5e3ecba24a7.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProducts9bf78bab2a0bf29dd17aff4236830255.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProducts9f55ce8920cc592399fc1f9ecef11422.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProductsa3c0cec8b58d162ea73df97e0223e2ee.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProductsa803e85cd63f6f192a3f3e32cafb0db4.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProductsc63a6e2c0cef8dd6992874116ee2de31.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProductsc81b60766d6f190ff4e35e4e42337edf.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProductsc8b109c5c9e996686c1aa1d522432743.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProductsca3e7f4da190b172695c7e379b21285a.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProductsea1c2e1ea36ae9f7e7932527d82c6f5e.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProductsea7c1c487882823d23ef1151b17614fd.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProductseb9b222164b7e426a1d308bad897e44e.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProductsebca7537e2d991922e1710509e9313e5.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProductsec447ceaa0579aa21bd354f820a43a75.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProductsec5e26a92f95ddb9db4514fc39f2cc39.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProductsec6e86914dea51cedef8a22f78465309.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProductsef6ca59747a5cc4ff02509f27b5d5143.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProductsf0d4a6ccbd6aa82a821558d0fd68ccfa.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProductsf9e100d771d1ec9cf8133e62e8dfc497.1758003239): No such file or directory in /home/mmtuning/public_html/system/library/cache/file.php on line 20Warning: Cannot modify header information - headers already sent by (output started at /home/mmtuning/public_html/system/framework.php:42) in /home/mmtuning/public_html/catalog/controller/startup/session.php on line 27 var price_with_options_ajax_call = function() { $.ajax({ type: 'POST', url: 'index.php?route=extension/module/live_options&product_id=95838', 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); }); } // Support journal2 if( $('.qty .journal-stepper').length ){ $(".qty .journal-stepper").bind( "mouseup touchend", function(e){ setTimeout(function() { price_with_options_ajax_call(); }, 100); }); }