Osclass Support Forums
Osclass theme support => Beta Osclass Theme => Topic started 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)
-
@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.
-
And how to do it, update Ajax?
-
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)
-
Could you write the lines to delete. That I do not delete something else.Thanks
-
Send modified files
Will send back corrected
[email protected]
-
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
-
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
-
Yes, you are right, only by deleting.
(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
-
That is what you asked for.