Add Selected Variation to product title

Here goes a simple function that will allow you to add the Variation data selected by the client to the product title.

Add to your functions.php

add_filter('wp_footer', 'custom_product_title_script');
function custom_product_title_script()
{
	// Only single product pages
	if (!is_product()) return;
?>
	<script type="text/javascript">
		(function($) {
			var productTitle = jQuery('.product_title').text();
			jQuery('form.variations_form').on("found_variation", function(variation) {
				// Fires whenever variation selects are changed
				var selected = [];
				jQuery.each(jQuery('form.variations_form').find(".variations select"), function(i, v) {
					if (jQuery(this).val()) selected.push(jQuery(this).val());
				});
				if (selected.length > 0)
					jQuery('.product_title').text(productTitle + ' - ' + selected.join(', '));
				else
					jQuery('.product_title').text(productTitle);
			});
		})(jQuery);
	</script>
<?php
}