• Resolved fwuk

    (@fwuk)


    Hi, I am still trying to understand the plugin. When I select a year, hitting filter button does nothing. Year filter does not look like working for me. Thanks for your help.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    I have just checked your website.

    After selecting the year dropdown select the javascript error appears:
    Cannot read property ‘_super’ of undefined

    For WordPress version 5.9 and greater you should replace the line:

    
       selected.vehicles.sort(this.sortCaseIns);
    

    with:

    
       selected.vehicles.sort($.proxy(this.sortCaseIns, this));
    

    in the file:
    wp-content/plugins/ymm-search/view/frontend/web/main.js

    Then refresh your browser cache.

    Stanislav

    Thread Starter fwuk

    (@fwuk)

    Thank you for very quick response. But
    line#116 is already same as your suggested replacement.
    line#116 selected.vehicles.sort($.proxy(this.sortCaseIns, this));
    The website is hosted at GoDaddy.I wonder if that has something to do with my problem.
    Thank you.

    • This reply was modified 1 year, 5 months ago by fwuk.
    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    I see it works now.

    Try to refresh your browser cache.

    Stanislav

    Thread Starter fwuk

    (@fwuk)

    Yes it does. Super.You’re a star!!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Year Selection no effect’ is closed to new replies.