
			var price_with_options_ajax_call = function() {
				$.ajax({
					type: 'post',
					url: 'index.php?route=extension/module/ajaxoptionprice/index&pid=816',
					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);
