• Home
  • Docs
    • User Manual
    • Magento 2 Manual
  • APIs
  • Back to Wizzy
  • Support
  • Home
  • Docs
    • User Manual
    • Magento 2 Manual
  • APIs
  • Back to Wizzy
  • Support
home/Knowledge Base/Shopify Manual/Troubleshooting

Search/Autocomplete is not working

24 views 0 February 27, 2023 March 3, 2023 naiteek

Note: This article is meant for developers only. Avoid if you’re a merchant.

If Search/Autocomplete is not working even after activating app embeds, please check from the inspect element if Wizzy APIs are getting executed. If not, You might have any of the following problems.

Search input DOM is not found

If the search input DOM is not found search/autocomplete functionality won’t work, Wizzy by default supports some standard themes and there could be a case when Wizzy is unable to find the Search element from your theme. In such cases, you will need to mention Search DOM explicitly to make autocomplete/search work. 

To find Search DOM, Just inspect the search element and check its class/ID. You will need to add this in the following config before wizzy initializes the search. The code in wizzyCustom.js may look something like this.

window.onWizzyLoaded.push(function () {
  window.wizzyConfig.events.registerEvent(
     window.wizzyConfig.events.allowedEvents.BEFORE_INIT,
     function (payload) {
       payload.common.lazyDOMConfig.searchInputIdentifiers.push("#main")
       return payload;
     }
   );
  );
});

Content DOM is not found

If content DOM is not found, go to the console in inspect element and look for the particular command. The code in wizzyCustom.js may look something like this. 

window.onWizzyLoaded.push(function () {
   window.wizzyConfig.events.registerEvent(
      window.wizzyConfig.events.allowedEvents.BEFORE_INIT,
      function (payload) {
        payload.common.lazyDOMConfig.contentDOMIdentifiers.push("#main")
        return payload;
      }
    );
  );
});

Was this helpful?

Yes  No
Related Articles
  • Elements to Hide on Search
  • Elements to Click on Search
Leave A Comment Cancel reply

Troubleshooting
  • Search/Autocomplete is not working
  • Elements to Hide on Search
  • Elements to Click on Search
Categories
  • Magento 2 Manual
    • Advanced Setup
    • Autocomplete Menu
    • Catalog Index Configuration
    • Search UI Customisation
    • Setup
  • Shopify Manual
    • Advance Setup
    • Attribute Configuration
    • Autocomplete Configuration
    • Catalog Index Configuration
    • Search Result Page Configuration
    • Setup
    • Troubleshooting
  • User Manual
    • Account
    • Analytics
    • Billing
    • Currencies
    • Developers
    • Stores
    • Synonyms
  • team@wizzy.ai
  • +91-9106141411
  • © 2023 Wizzy Softech Pvt. Ltd. All Rights Reserved