Warning: unlink(/home/mmtuning/storage_sub_new/cache/cache.ProductgetProducts191a7297fb4e4643a9b10dba58b6d682.1744143919): 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.ProductgetProducts1d9bc14a1ebc7a201e9f6eeac38fa3c3.1744143920): 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.ProductgetProducts259bcd468ec82f6f7b51304aa7eed2ad.1744143919): 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.ProductgetProducts40acf9396247234e5379b7fd0e69450b.1744143919): 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.ProductgetProducts5ba3708711b481ae7b79fbc86f66728f.1744143921): 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.ProductgetProducts5e53892306ca98606d1c0feab0cb0d0a.1744143920): 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.ProductgetProducts6b6da33269775f52e939ae09fff9d4db.1744143919): 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.ProductgetProducts6d0575ba2ce7667302420bbe8876365d.1744143920): 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.ProductgetProducts765f3fb15548fb8521610db6bb70da06.1744143921): 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.ProductgetProducts777300341d5aa225368dc521a9840bed.1744143921): 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.ProductgetProductsb89dbbf869419127a82790f20ef0b59d.1744143921): 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.ProductgetProductsbb4682e7505d8ad920ba9daae1826946.1744143919): 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.ProductgetProductscf00f71e437c8f5ee2415caf8a8476b2.1744143919): 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.ProductgetProductsd659bff98860decd208c59798553046b.1744143920): 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.ProductgetProductse18481168232dafd662b571c16ab8506.1744143921): 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.ProductgetProductse4158882d33a4dd8b8eda3242987759a.1744143920): 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.ProductgetProductsec02a26cadf2d8303f5bf55a86dba9e7.1744143920): 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.ProductgetProductsec9b0df96114a88cc9487c7b8486c76a.1744143921): 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.ProductgetProductsf20ef5d4246078f34d47d487981dd502.1744143920): 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 27Warning: Cannot modify header information - headers already sent by (output started at /home/mmtuning/public_html/system/framework.php:42) in /home/mmtuning/storage_sub_new/modification/catalog/controller/startup/startup.php on line 101Warning: Cannot modify header information - headers already sent by (output started at /home/mmtuning/public_html/system/framework.php:42) in /home/mmtuning/storage_sub_new/modification/catalog/controller/startup/startup.php on line 159 var price_with_options_ajax_call = function() { $.ajax({ type: 'POST', url: 'index.php?route=extension/module/live_options&product_id=23118', 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); }); }