Warning: unlink(/var/www/storage/cache/cache.getCategory.2.0.1.10.1771747447): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getCategoryLayoutId.2.0.1.6.1771747468): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getCheapestProduct.2.0.1.823585cf6d48a655ab846bc9261a1ddc.1771747468): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getCheapestProduct.2.0.1.cb1daa87935d93138c7abd4048295037.1771747468): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getLayoutModules.47defaultcolumn_left.1771747468): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getLayoutModules.47defaultcontent_bottom.1771747468): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getLayoutModules.47defaultcontent_top.1771747468): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getProduct.2.0.1.17.1771747468): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getProduct.2.0.1.54.1771747468): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getProduct.2.0.1.75.1771747468): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getProductLayoutId.19.1771747468): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getProductLayoutId.67.1771747468): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getProducts.2.0.1.5294dfbc9a2454cae4fabcd1ece0f67a.1771747468): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getProducts.2.0.1.ababde0f245a1d5ce8b26aefa5984a57.1771747468): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getProducts.2.0.1.da9e74dfbf69ee95d015da0c79a86ef5.1771747468): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getRedirectByOrigin.old_categories_1039.1771747467): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getRedirectByOrigin.routeextensionmodulelive_optionsjsampproduct_id83.1771747449): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getTotalProducts.2.0.1.5458b91bf284f8f8eec9837329502e31.1771747467): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/system/framework.php:42) in /var/www/html/catalog/controller/startup/session.php on line 30Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/system/framework.php:42) in /var/www/html/catalog/controller/startup/startup.php on line 99Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/system/framework.php:42) in /var/www/html/catalog/controller/startup/startup.php on line 157 var price_with_options_ajax_call = function() { $.ajax({ type: 'POST', url: 'index.php?route=extension/module/live_options&product_id=59', 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); }); }