Tom
I am using a jQuery Ui sidebar accordion menu on my woo site.
It works perfectly in all locations with one exception:
If I do a search using the Woo search widget and the result it returns is “no products found” the menu does not function on that page.
If the search does return products they are displayed and the side bar menu works as expected.
If I inspect the no products found page in chrome/console I can see the following error message:
JQMIGRATE: Migrate is installed, version 1.4.1
Uncaught TypeError: jQuery(...).dcAccordion is not a function
at HTMLDocument.<anonymous> (?s=trucks&post_type=product:59)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
at Function.ready (jquery.js?ver=1.12.4:2)
at HTMLDocument.K (jquery.js?ver=1.12.4:2)
The menu works as expected in all other (shop) archive-product template scenarios, categories and a seach that returns products. However if the search fires the no products found loop the menu is broken on the resulting page.
This one has me stumped. Any help you can provide is appreciated greatly.