[Resolved] Complex Jquery menu problem

Home Forums Support [Resolved] Complex Jquery menu problem

Home Forums Support Complex Jquery menu problem

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #628442
    Max

    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.

    GeneratePress 2.1.3
    GP Premium 1.6.2
    #628508
    Max

    What I cant understand is that an empty search, and a search that displays products, are both appearing in the same archive-product.php template. How can it be that the side bar menu functions differently using the same template?

    #628550
    David
    Staff
    Customer Support

    Hi Max,

    can you share a link to the site? You can edit your original post and use the Site URL field for privacy, then ‘the smart’ one can have a look

    #628580
    Max

    David

    Thanks for your prompt reply.

    I have just sorted this one out for myself.

    No need to send it upstairs.

    Hope you have a good weekend.

    Kind Regards

    Max

    #628587
    David
    Staff
    Customer Support

    Thats great to hear. Any advice on what the issue was? I understand if you don’t want to share lol

    #628607
    Max

    plugin script conflict

    #628611
    David
    Staff
    Customer Support

    Aah, ok. Thanks for sharing.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.