• Resolved edgarweb

    (@edgarwebstudio)


    Hi I have problem with ajax.
    I am using 2 plugins yours and other( ajax filter for category ). And they are on same page. So for the first time ajax search is working great but when I am choosing category (other plugin) my page reloading by ajax so I loosing all DOM assignments for AJAX SEARCH PLUGIN scripts. Is there any way to recall scripts for plugin (Ajax Search for WooCommerce). ?

Viewing 1 replies (of 1 total)
  • Plugin Author Damian Góra

    (@damian-gora)

    Hi,

    yes, you can do it via JavaScript:

    
    var $inputs = $('.dgwt-wcas-search-input');
    
      if ($inputs.length > 0) {
        $inputs.each(function () {
    
          if (typeof $(this).data('autocomplete') != 'object') {
            $(this).dgwtWcasAutocomplete(window.dgwt_wcas.config);
          }
    
      });
    }
    

    Best
    Damian

Viewing 1 replies (of 1 total)
  • The topic ‘How to reinitialize js scripts ?’ is closed to new replies.