Osclass Support Forums

Osclass theme support => Veronika Osclass Responsive Theme => Topic started by: azi_111 on February 14, 2021, 04:25:11 PM

Title: No country match to your criteria - how can I hide it
Post by: azi_111 on February 14, 2021, 04:25:11 PM
Hi,
when my user want add location to the listening, Osclass find City but write also:
No country match to your criteria  (Brak kraju spełniającego kryteria)
No region match to your criteria   (Brak województwa spełniającego kryteria)

How can I hide this? It looks non proffesional :)
I add attachement in Polish, but I think that you understand what about I write.
Title: Re: No country match to your criteria - how can I hide it
Post by: MB Themes on February 14, 2021, 08:28:34 PM
@azi_111
Add this code to your style.css:
Code: [Select]
#location-picker .shower .option.country, #location-picker .shower .option.region {display:none!important;}
Title: Re: No country match to your criteria - how can I hide it
Post by: azi_111 on March 05, 2021, 01:03:21 AM
It doesn't work OK, because clients can't searching offers through regions - they can search only in cities.
My intention was hide not important information but not delete regions. 
Title: Re: No country match to your criteria - how can I hide it
Post by: MB Themes on March 05, 2021, 07:44:52 AM
@azi_111
Then try this:
Code: [Select]
#location-picker .shower .option.empty-pick {display:none!important;}
Title: Re: No country match to your criteria - how can I hide it
Post by: azi_111 on March 05, 2021, 10:53:25 PM
Thank you, it work good. :)
Title: Re: No country match to your criteria - how can I hide it
Post by: Usiesili Bright on March 05, 2021, 11:01:56 PM
Thank you, it work good. :)

Your user will only search by City.. Region and country will not work  :P.

Is that what you want
Title: Re: No country match to your criteria - how can I hide it
Post by: Usiesili Bright on March 06, 2021, 09:09:33 AM
Better you find the below line at footer.php

// No city, region or country found
                if( countCountry == 0 && shower.find('.empty-country').length <= 0 && shower.find('.service.min-char').length <= 0) {
                  shower.find('.option.country').remove();
                  result_first += '<div class="option service empty-pick empty-country country"><?php echo osc_esc_js(__('No country match to your criteria', 'veronika')); ?></div>';
                }

                if( countRegion == 0 && shower.find('.empty-region').length <= 0 && shower.find('.service.min-char').length <= 0) {
                  shower.find('.option.region').remove();
                  result_first += '<div class="option service empty-pick empty-region region"><?php echo osc_esc_js(__('No region match to your criteria', 'veronika')); ?></div>';
                }

                if( countCity == 0 && shower.find('.empty-city').length <= 0 && shower.find('.service.min-char').length <= 0) {
                  shower.find('.option.city').remove();
                  result_first += '<div class="option service empty-pick empty-city city"><?php echo osc_esc_js(__('No city match to your criteria', 'veronika')); ?></div>';
                }

              }

              shower.html(result_first + result);
            }
          });

        } else {


Just delete No country match to your criteria and no region match to your criteria..


Delete only the text not the full code
Title: Re: No country match to your criteria - how can I hide it
Post by: azi_111 on May 23, 2021, 11:08:32 PM
Sorry, that I don't write, but I have no time to check your advice.
I check it, and your advice didn't solve problem because still there is line, clear but it is.

I see that MB Themes advice work OK - there is searching by region or city.

I see other problem now:

Something it don't show proposition until I click in this text box - if someone doesn't know it, he can think that it doesn't work

Attachements:
1. lack of propositon
2. propositon after click in text box