*

mocody

  • ****
  • 139 posts
  • Only Marketing matters
Homepage listing shows Regions how to display Cities?.
« on: November 09, 2020, 08:36:26 AM »
@mb-themes
Homepage listing shows Regions at the bottom how to display Cities?. instead of regions.
thanks.

*

MB Themes

Re: Homepage listing shows Regions how to display Cities?.
« Reply #1 on: November 09, 2020, 08:59:15 AM »
@codebarre
Open loop-single.php, loop-single-premium.php and change:
Code: [Select]
osc_item_region()
into:
Code: [Select]
osc_item_city()
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mocody

  • ****
  • 139 posts
  • Only Marketing matters
Re: Homepage listing shows Regions how to display Cities?.
« Reply #2 on: November 09, 2020, 02:17:11 PM »
there are other osc_itemXXXX functions
but osc_item_region() is not available in these files.

I spoted  bet_item_location () do you think it could be this one.

*

mocody

  • ****
  • 139 posts
  • Only Marketing matters
Re: Homepage listing shows Regions how to display Cities?.
« Reply #3 on: November 10, 2020, 09:20:07 AM »
@mb themes

// ITEM LOOP FORMAT LOCATION
function bet_item_location($premium = false) {
  if(!$premium) {
    $loc = array_filter(array(osc_item_city(), (osc_item_city() == '' ? osc_item_region(): ''), osc_item_country_code()));
  } else {
    $loc = array_filter(array(osc_premium_city(), (osc_premium_city() == '' ? osc_premium_region() : ''), osc_premium_country_code()));
  }

  return implode(', ', $loc);

I have changed the region function to city here in the functions.php file, but my city didn't appear because of, when i go to the listing update at the admin, i see country , region , but city is blank. ?.

during posting i can select the city.

Any Idea./

*

MB Themes

Re: Homepage listing shows Regions how to display Cities?.
« Reply #4 on: November 10, 2020, 12:13:05 PM »
@codebarre
If you look on this code:
Code: [Select]
$loc = array_filter(array(osc_item_city(), (osc_item_city() == '' ? osc_item_region(): ''), osc_item_country_code()));

It takes city or region and country code. If city is blank, it takes region. So if you do not have city filled, nothing to show.
Do you have city stored in database? can you put there screenshot of t_item_location table?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

MB Themes

Re: Homepage listing shows Regions how to display Cities?.
« Reply #5 on: November 10, 2020, 04:15:43 PM »
@codebarre
So make sure it is proprely added on publish page, it has correct name (input/select) and is there just once.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mocody

  • ****
  • 139 posts
  • Only Marketing matters
Re: Homepage listing shows Regions how to display Cities?.
« Reply #6 on: November 10, 2020, 04:28:37 PM »
@mb themes.
Thanks for the support, its not adding from the pubish page  it can be addee only at the admin. Only the admin one is working.  Iam updating listings from the admin, which very tiring to update the entire listing. So how can we solve the publish page. And i will update the old listings location manually,

*

MB Themes

Re: Homepage listing shows Regions how to display Cities?.
« Reply #7 on: November 10, 2020, 04:46:54 PM »
@codebarre
What is your URL?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots