• Resolved 1gcrazy

    (@1gcrazy)


    I’m not sure when but my YMM search has stopped working. It will allow me to chose the year but once I click on a selection it won’t auto move to “make” unless I press search. Then it works but again will not auto move to model until I press search.

    This is not how it used to work obviously. Any help?
    Ty

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

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

    (@pektsekye)

    Hello,

    Try to replace this line:

    return Pektsekye_YMM()->getPluginUrl() . ‘ymm_ajax.php’;

    with:

    return ”;

    in the file:
    wp-content/plugins/ymm-search/Block/Selector.php

    I have also other solutions for this problem. But I cannot attach the modified files here. You should contact me by email [email protected]

    Stanislav

    Thread Starter 1gcrazy

    (@1gcrazy)

    Still don’t have a solution to this.

    I had the same issue and what the plugin author posted is right just looks like a keystroke issue when posting.

    replace

       return Pektsekye_YMM()->getPluginUrl() . 'ymm_ajax.php’;
    

    with

    return '';

    in the file:
    wp-content/plugins/ymm-search/Block/Selector.php

    https://www.ads-software.com/support/topic/ymm-not-working-unless-direct-php-files-access-is-enabled/

    Thread Starter 1gcrazy

    (@1gcrazy)

    EXCELLENT! Thank you! That worked.

    • This reply was modified 3 years, 6 months ago by 1gcrazy.

    I had this same issue and the mentioned fix did work for me as well. Is there a planned permanent fix for this to make it more robust? In fear I won’t want to update this plugin in case it overwrites the Selector.php file and causes the dropdowns to no longer work properly again. Thanks!

    Edit: In addition, this fix doesn’t work on mobile – only desktop.

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    to: lgschoem

    >Is there a planned permanent fix

    There are different problems that can cause this issue.
    So there is no a permanent fix for it.

    > I won’t want to update this plugin in case it overwrites the Selector.php file

    Most people use this plugin modified. And they are not going to update to lose custom changes.
    It is the main idea of this plugin to keep the base code simple and to not change it as long as possible.
    Other features can be added as modifications:
    https://hottons.com/ymm_modifications

    >this fix doesn’t work on mobile – only desktop

    Check the page HTML source. Maybe the desktop and the mobile blocks of this plugin have the same id in the HTML tag. So that only one is initialized with JavaScript.

    To make each YMM block have a unique id try to add this line:

          
          this.element[0].id = this.element[0].id + '_';
    

    after the line:

    
          $.extend(this, this.options);
    

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

    If it does not help send a link to your website where I can see it to my email [email protected]

    Stanislav

    Thank you for the detailed explanations, it helps a lot. I tried your code change and it works for mobile now. Thanks again!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Year drops fine but model never becomes available.’ is closed to new replies.