• Resolved vale2122

    (@vale2122)


    Hi

    So when you select “make,” you can search, but I want to disable that. You should only be allowed to search after you put in your make, model, year, and engine. and maybe a category, then you can search. So how do I go about it.

    Thanks in advance

    • This topic was modified 3 years, 3 months ago by vale2122.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Try to replace the code:

    
        submit : function(){
    
          if (!this.firstLevelIsSelected()){
            return;
          }   
    

    with:

    
        submit : function(){
    
          if (!this.lastLevelIsSelected()){
            return;
          }  
    

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

    For category drop-down selects:

    replace :

    
      this.submitCategory(cId);
    

    with:

    
      // this.submitCategory(cId);
    
    

    Then refresh your browser cache.

    Stanislav

    Thread Starter vale2122

    (@vale2122)

    hmm… its still not working u can still search when you only select make

    Thread Starter vale2122

    (@vale2122)

    Its working i am just dumb. I didnt clear my browser cache. Thank you so much much love <3

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

The topic ‘YMM Search required fields’ is closed to new replies.