<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">			var price_with_options_ajax_call = function() {
				$.ajax({
					type: 'POST',
					url: 'index.php?route=extension/basel/live_options/index&amp;product_id=13850',
					data: $('.product-info input[type=\'text\'], .product-info input[type=\'number\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\']:checked, .product-info select, .product-info textarea'),
					dataType: 'json',
					beforeSend: function() {
                        $('#product').find('input[type=text]').val('');
                    },
					success: function(json) {
						if (json.success) {
							
							if ($('.product-info .live-price-tax').length &gt; 0 &amp;&amp; json.new_price.tax) {
								animation_on_change_price_with_options('.product-info .live-price-tax', json.new_price.tax);
							}
							if ($('.product-info .live-price-new').length &gt; 0 &amp;&amp; json.new_price.special) {
								animation_on_change_price_with_options('.product-info .live-price-new', json.new_price.special);
							}
							if ($('.product-info .live-price').length &gt; 0 &amp;&amp; json.new_price.price) {
								animation_on_change_price_with_options('.product-info .live-price', json.new_price.price);
							}
						}
					},
					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(250, function() {
					$(this).html(new_html_content).fadeIn(150);
				});
			}

			//$(document).on('change', '.product-info input[type=\'text\'], .product-info input[type=\'number\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\'], .product-info select, .product-info textarea, .product-info input[name=\'quantity\']', function () {
		    $(document).on('change', '.product-info input[type=\'number\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\'], .product-info select, .product-info textarea, .product-info input[name=\'quantity\']', function () {
			    price_with_options_ajax_call();
			});
		</pre></body></html>