Using JQuery in Searchanise on Magento 2

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.
Updated on February 7, 2022

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you

Let us improve this post!

Please tell us how we can improve this post

Related Articles

Back to top