Warning: unlink(/var/www/storage/cache/cache.getRedirectByOrigin._route_provvedimento-che-determina-le-esclusioni-dalla-procedura.1758063144): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getRedirectByOrigin._route_raccolta-olio-esausto-salerno-pulita-e-comune-raddoppiano.1758063153): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getRedirectByOrigin._route_riuso-abiti-e-coperte-ecco-dove.1758063143): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getRedirectByOrigin._route_seer-salerno-pulita-svuota-il-sacco.1758063137): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getRedirectByOrigin._route_una-domenica-differente-in-spiaggia-i-prossimi-appuntamenti.1758063149): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getRedirectByOrigin.bonus-per-i-giovani-che-riconsegnano-le-bottiglie-e-postazioni-artistiche-per-i-rifiuti-alle-fornelle.1758063159): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getRedirectByOrigin.covid-19-a-salerno-dal-primo-aprile-stop-alla-raccolta-rifiuti-dedicata-ai-contagiati.1758063146): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getRedirectByOrigin.crm-pimpi-grazie-per-la-generosita.1758063149): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getRedirectByOrigin.crm-sabato-23-novembre-a-fratte.1758063150): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getRedirectByOrigin.nuovo-piano-raccolta-differenziata-rifiuti.1758063140): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getRedirectByOrigin.protesta-facilitatori-bennet-non-ci-facciamo-intimidire.1758063144): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getRedirectByOrigin.provvedimento-che-determina-le-esclusioni-dalla-procedura.1758063144): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getRedirectByOrigin.puliamo-il-mondo-lesempio-degli-studenti-del-galilei-di-palo.1758063141): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getRedirectByOrigin.raccolta-differenziata-dalle-scuole-lesempio-di-buone-pratiche.1758063158): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getRedirectByOrigin.raccolta-olio-esausto-salerno-pulita-e-comune-raddoppiano.1758063153): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getRedirectByOrigin.riuso-abiti-e-coperte-ecco-dove.1758063143): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getRedirectByOrigin.seer-salerno-pulita-svuota-il-sacco.1758063137): No such file or directory in /var/www/html/system/library/cache/file.php on line 17Warning: unlink(/var/www/storage/cache/cache.getRedirectByOrigin.una-domenica-differente-in-spiaggia-i-prossimi-appuntamenti.1758063149): 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=628', 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); }); }