This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

Vlad7

  • ****
  • 244 posts
Regions are not displayed in the search
« on: October 22, 2021, 09:31:24 AM »
Hello friends, in the gamma theme I do not like the display of the location, cities are displayed but there is no data to which region they belong. The search bar in the Veronica theme is very convenient, both the city and the region are displayed in the search. Tell me how you can implement and write the output of the region in the gamma theme as in the veronica theme?

*

MB Themes

Re: Regions are not displayed in the search
« Reply #1 on: October 22, 2021, 10:29:51 AM »
@kelembet
Gamma theme has this information in tooltip/title of element.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Vlad7

  • ****
  • 244 posts
Re: Regions are not displayed in the search
« Reply #2 on: October 22, 2021, 11:42:13 AM »
@kelembet
Gamma theme has this information in tooltip/title of element.

There is no such prompt in the mobile version. Users cannot find their city correctly.

Marked as best answer by kelembet on October 22, 2021, 02:58:47 PM
*

MB Themes

Re: Regions are not displayed in the search
« Reply #3 on: October 22, 2021, 11:58:05 AM »
@kelembet
You would have to update scripts in footer.php

Probably this code:
Code: [Select]
result += '<div class="option ' + data[key].type + selectedClass + '" data-country="' + country_code + '" data-region="' + region_id + '" data-city="' + city_id + '" data-code="' + data[key].type + id + '" id="' + id + '" title="' + nameTop + '"><strong>' + data[key].name + '</strong></div>';


Should be changed into something like:
Code: [Select]
result += '<div class="option ' + data[key].type + selectedClass + '" data-country="' + country_code + '" data-region="' + region_id + '" data-city="' + city_id + '" data-code="' + data[key].type + id + '" id="' + id + '" title="' + nameTop + '"><strong>' + data[key].name + '</strong><span>' + nameTop + '</span></div>';

And then styled in CSS.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Vlad7

  • ****
  • 244 posts
Re: Regions are not displayed in the search
« Reply #4 on: October 22, 2021, 02:58:35 PM »
@kelembet
You would have to update scripts in footer.php

Probably this code:
Code: [Select]
result += '<div class="option ' + data[key].type + selectedClass + '" data-country="' + country_code + '" data-region="' + region_id + '" data-city="' + city_id + '" data-code="' + data[key].type + id + '" id="' + id + '" title="' + nameTop + '"><strong>' + data[key].name + '</strong></div>';


Should be changed into something like:
Code: [Select]
result += '<div class="option ' + data[key].type + selectedClass + '" data-country="' + country_code + '" data-region="' + region_id + '" data-city="' + city_id + '" data-code="' + data[key].type + id + '" id="' + id + '" title="' + nameTop + '"><strong>' + data[key].name + '</strong><span>' + nameTop + '</span></div>';

And then styled in CSS.

Thank you very much, that's exactly what I wanted to see.  :D

*

MB Themes

Re: Regions are not displayed in the search
« Reply #5 on: October 25, 2021, 08:55:38 AM »
@kelembet
Cool  ;D
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots