Embed to php

You can use Woocommerce Ajax Search by inserting in the template the following php code:

<?php echo do_shortcode('[woocommerce_ajax_search]');?>

or :

<?php echo do_shortcode('[woocommerce_ajax_search cat_box=1 cat_default=1 hide_empty=1 cat_level=0 cat_tree=1 search_button=1 search_icon=1]');?>

if use [woocommerce_ajax_search] it will get default settings of plugin in backend.