<?php if ( defined( 'ICL_LANGUAGE_CODEICL_LANGUAGE_CODE' ) ): ?> <input type="hidden" name="lang" value="<?php echo( ICL_LANGUAGE_CODE ); ?>" /> <?php endif ?> </form> </div> <script type="text/javascript"> jQuery(function($){ if( $('.yith-search-premium').length ){ return false; } var search_loader_url = '<?php echo apply_filters('yith_wcas_ajax_search_icon', yit_get_ajax_loader_gif_url() ) ?>'; var bg = $('#search_mini').css('background'); $('#search_mini').yithautocomplete({ minChars: <?php echo get_option('yith_wcas_min_chars') * 1; ?>, appendTo: '.yith-ajaxsearchform-container', serviceUrl: woocommerce_params.ajax_url + '?action=yith_ajax_search_products', onSearchStart: function(){ $(this).css('background', 'url('+search_loader_url+') no-repeat right center'); }, onSearchComplete: function(){ $(this).css('background', bg); }, onSelect: function (suggestion) { if( suggestion.id != -1 ) {
function yit_woocommerce_object() { wp_localize_script( 'jquery', 'yit_woocommerce', array( 'woocommerce_ship_to_billing' => yit_woocommerce_default_shiptobilling(), 'load_gif' => yit_get_ajax_loader_gif_url(), 'version' => WC()->version, )); }