Using JQuery in Searchanise on Magento 2 Print

Modified on: Mon, Dec 20, 2021 at 10:51 AM


Searchanise uses the jQuery library that is available right out of the box. However, Magento itself also uses jQuery that comes as part of the package. Sometimes these two JQuery versions load up at the same time in Searchanise widgets, creating a clash.

If you have Magento v. 2.3.x or later and the Searchanise module v. 1.0.15 or later, only one JQuery version loads in Searchanise widgets: Magento's JQuery, by default. If you face trouble with widgets' loading, you can set up the Searchanise JQuery version to load. To do so, follow these steps:

  1. Go to the <module_dir>/etc/config.xml file.
  2. Change the following parameter from:
    <enable_internal_jquery>1</enable_internal_jquery>
    to
    <enable_internal_jquery>0</enable_internal_jquery>
  3. Save the changes.
  4. Clear the cache in the Magento 2 admin panel > System > Cache Management by clicking the Flush Magento Cache button in the top-right corner.




Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.