*

Andrey

  • ****
  • 157 posts
City dropdown tooltip
« 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




*

MB Themes

Re: City dropdown tooltip
« Reply #1 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.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Andrey

  • ****
  • 157 posts
Re: City dropdown tooltip
« Reply #2 on: October 29, 2020, 10:20:45 AM »
And how to do it, update Ajax?

*

MB Themes

Re: City dropdown tooltip
« Reply #3 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)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Andrey

  • ****
  • 157 posts
Re: City dropdown tooltip
« Reply #4 on: October 30, 2020, 08:08:47 PM »
Could you write the lines to delete. That I do not delete something else.Thanks

*

Ogl24

  • ***
  • 24 posts
Re: City dropdown tooltip
« Reply #5 on: October 30, 2020, 08:27:53 PM »
Send modified files
Will send back corrected
[email protected]

*

Andrey

  • ****
  • 157 posts
Re: City dropdown tooltip
« Reply #6 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

*

Ogl24

  • ***
  • 24 posts
Re: City dropdown tooltip
« Reply #7 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

*

Andrey

  • ****
  • 157 posts
Re: City dropdown tooltip
« Reply #8 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
« Last Edit: October 31, 2020, 12:40:07 AM by Andrey »

*

MB Themes

Re: City dropdown tooltip
« Reply #9 on: October 31, 2020, 02:26:48 PM »
That is what you asked for.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots