Advertisement:

Author Topic: [Tuturial]Show all countries,regions and cities in sidebar  (Read 29650 times)

osCanyon

  • Hero Member
  • *****
  • Posts: 701
  • osCanyon, the class of Osclass
Re: [Tuturial]Show all countries,regions and cities in sidebar
« Reply #45 on: April 30, 2016, 06:16:15 pm »
on a 'out of the box' install it is normal to Not show the region unless there are ads in the region.
at least this is what I have found, after adding a region its Not on the list until I post an ad

I've tried the code posted here with no luck on 3.0.2.

I just don't understand this part:
Code: [Select]
View::newInstance()->_exportVariableToView('list_regions', Search::newInstance()->listRegions('%%%%', '>=', 'region_name ASC') ) ;
I have a lot of regions in the database, and in the main.php it only shows 4, and NONE of them have listings on.
How can I only show ones which have listings?

Thanks!