Warning: unlink(/var/www/fastuser/data/www/storage/cache/cache.catalog.language.1714629092): No such file or directory in /var/www/fastuser/data/www/freedelivery.com.ua/system/library/cache/file.php on line 68Warning: Cannot modify header information - headers already sent by (output started at /var/www/fastuser/data/www/freedelivery.com.ua/system/framework.php:42) in /var/www/fastuser/data/www/storage/modification/catalog/controller/startup/startup.php on line 100Warning: Cannot modify header information - headers already sent by (output started at /var/www/fastuser/data/www/freedelivery.com.ua/system/framework.php:42) in /var/www/fastuser/data/www/storage/modification/catalog/controller/startup/startup.php on line 158 var price_with_options_ajax_call = function() { $.ajax({ type: 'post', url: 'index.php?route=extension/module/ajaxoptionprice/index&pid=1352', 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', success: function(json) { if (json.success) { if ($('price-tag').length > 0 && json.new_price.price) { animation_on_change_price_with_options('price-tag', json.new_price.price); } if ($('special-price-tag').length > 0 && json.new_price.special) { animation_on_change_price_with_options('special-price-tag', json.new_price.special); } if ($('special-price-tag').length > 0 && json.new_price.tax) { animation_on_change_price_with_options('tax-price-tag', json.new_price.tax); } } }, error: function(error) { console.log(error); } }); } var animation_on_change_price_with_options = function(selector, value) { $(selector).fadeOut(150, function() { $(this).html(value).fadeIn(50); }); } $('#product').on('change', 'input[type=\'text\'], input[type=\'hidden\'], input[type=\'radio\'], input[type=\'checkbox\'], select, textarea', price_with_options_ajax_call);