Notice: session_start(): ps_files_cleanup_dir: opendir(/tmp/.priv) failed: Permission denied (13) in /homepages/11/d337972217/htdocs/CL/PdeJ/system/library/session.php on line 12Warning: session_start(): Session cache limiter cannot be sent after headers have already been sent (output started at /homepages/11/d337972217/htdocs/CL/PdeJ/index.php:98) in /homepages/11/d337972217/htdocs/CL/PdeJ/system/library/session.php on line 12Warning: Cannot modify header information - headers already sent by (output started at /homepages/11/d337972217/htdocs/CL/PdeJ/index.php:98) in /homepages/11/d337972217/htdocs/CL/PdeJ/index.php on line 185Warning: Cannot modify header information - headers already sent by (output started at /homepages/11/d337972217/htdocs/CL/PdeJ/index.php:98) in /homepages/11/d337972217/htdocs/CL/PdeJ/system/library/currency.php on line 45Warning: Cannot modify header information - headers already sent by (output started at /homepages/11/d337972217/htdocs/CL/PdeJ/index.php:98) in /homepages/11/d337972217/htdocs/CL/PdeJ/catalog/controller/product/livepriceupdate.php on line 168 var price_with_options_ajax_call = function() { $.ajax({ type: 'POST', url: 'index.php?route=product/livepriceupdate/index', data: $('#product input[type=\'text\'], #product input[type=\'hidden\'], #product input[type=\'radio\']:checked, #product input[type=\'checkbox\']:checked, #product select, #product 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) { animation_on_change_price_with_options('#price_special', json.new_price.special); animation_on_change_price_with_options('#price_tax', json.new_price.tax); animation_on_change_price_with_options('#price_old', json.new_price.price); } }, error: function(error) { //console.log(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 ( jQuery.isFunction(jQuery.fn.on) ) { $('#product input[type=\'text\'], #product input[type=\'hidden\'], #product input[type=\'radio\'], #product input[type=\'checkbox\'], #product select, #product textarea, #product input[name=\'quantity\']').on('change', function() { price_with_options_ajax_call(); }); } else { $('#product input[type=\'text\'], #product input[type=\'hidden\'], #product input[type=\'radio\'], #product input[type=\'checkbox\'], #product select, #product textarea, #product input[name=\'quantity\']').on('change', function() { price_with_options_ajax_call(); }); }