WooCommerce Ajax Search provides shortcode with structure below :

[woocommerce_ajax_search cat_box=1 cat_default=1 hide_empty=1 cat_level=0 cat_tree=1 search_button=1 search_icon=1]

Shortcode Attributes:

  • cat_box – Show categories select box. The default is “1” which will show categories select box. Set to “0” to hide categories select box.
  • cat_default – The default is “1” which will show default(uncategorized) categories. Set to “0” to hide default(uncategorized) categories
  • hide_empty – The default is “1” which will hide empty categories. Set to “0” to show empty categories.
  • cat_level – Display the categories by level. The default is “0” which will show all categories. Level of categories will automatically load.
  • cat_tree – Display the categories in a hierarchical structure. The default is “1”.
  • search_button – Show search button. The default is “1” which will show search button. Set to “0” to hide search button.
  • search_icon – Show search icon. The default is “1” which will show search icon. Set to “0” to hide search icon.
  • cat_box_bg – Categories select box background color.   Eg: cat_box_bg="dd3333".
  • cat_box_color – Categories select box text color.   Eg: cat_box_color="000000".
  • cat_box_bw – Categories select box border-width.   Eg: cat_box_bw=1
  • cat_box_bc – Categories select box border-color.   Eg: cat_box_bc="cccccc"
  • input_bg – Search input background color.   Eg: input_bg="333333"
  • input_color – Search input text color.   Eg: input_color="ffffff"
  • input_bw – Search input border-width.   Eg: input_bw=1
  • input_bc – Search input border-color.   Eg: input_bc="cccccc"
  • button_bg – Search button background color.   Eg: button_bg="e10000"
  • button_color – Search button text color.   Eg: button_color="81d742"
  • button_bw – Search button border-width.   Eg: button_bw=1
  • button_bc – Search button border-color.   Eg: button_bc="cccccc"

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