Osclass Support Forums

Osclass theme support => Beta Osclass Theme => Topic started by: Andrey on October 28, 2020, 11:08:06 AM

Title: City dropdown tooltip
Post by: Andrey on October 28, 2020, 11:08:06 AM
Hello. Made City dropdown tooltip when publishing as in theme Veronica.
But in the offer the choice of the City, two options are shown: 1) «The city is just a name», and 2) «The city is correct with the region».
How to remove the first sentence City? Thank you
(https://do-mos.ru/City-dropdow.PNG)


Title: Re: City dropdown tooltip
Post by: MB Themes on October 28, 2020, 03:22:39 PM
@Andrey
You will have to update ajax of theme and filter out enries you do not want.
First one (bold) is probably region, not city.
Title: Re: City dropdown tooltip
Post by: Andrey on October 29, 2020, 10:20:45 AM
And how to do it, update Ajax?
Title: Re: City dropdown tooltip
Post by: MB Themes on October 30, 2020, 05:08:52 PM
I think very first block in ajax.php in theme folder is about location.
You may try simplest solution that is to remove first 4 rows in sql there (country, union, region, union)
Title: Re: City dropdown tooltip
Post by: Andrey on October 30, 2020, 08:08:47 PM
Could you write the lines to delete. That I do not delete something else.Thanks
Title: Re: City dropdown tooltip
Post by: Ogl24 on October 30, 2020, 08:27:53 PM
Send modified files
Will send back corrected
[email protected]
Title: Re: City dropdown tooltip
Post by: Andrey on October 30, 2020, 08:48:22 PM
Send modified files
Will send back corrected
[email protected]
What file is it for you? ajax.php? I haven't changed anything in it yet. I'm changing everything doesn't work
Title: Re: City dropdown tooltip
Post by: Ogl24 on October 30, 2020, 10:32:16 PM
I have Ajax unless something changed in it
Files in which the search was changed
From what I can see it's not very well written
Title: Re: City dropdown tooltip
Post by: Andrey on October 31, 2020, 12:36:27 AM
Yes, you are right, only by deleting.
Code: [Select]
    (SELECT "region" as type, r.s_name as name, c.s_name as name_top, null as city_id, r.pk_i_id  as region_id, r.fk_c_country_code as country_code  FROM ' . DB_TABLE_PREFIX . 't_region r, ' . DB_TABLE_PREFIX . 't_country c WHERE r.fk_c_country_code = c.pk_c_code AND r.s_name like "' . $term . '%")
    UNION ALL
But so the region disappears from the search
Title: Re: City dropdown tooltip
Post by: MB Themes on October 31, 2020, 02:26:48 PM
That is what you asked for.