*

mariogtz

  • ***
  • 59 posts
 1) Is it possible that when choosing a location and selecting X category, only show ads for the selected location and category?


This helps to reduce queries to the database.

The search engine does work very well, because when searching for something, it only shows results from the selected location.


2) it will be possible that when clicking and selecting a location among the popular locations, it will redirect directly to that location.

Because it is eye catching to see a number of ads and when you click it does not redirect to that location. Instead, it redirects to home.


*

MB Themes

In main.php, you have link generated using:
Code: [Select]
<?php echo osc_search_url(array('page' => 'search''sCategory' => osc_category_id())); ?>
change it to:
Code: [Select]
<?php echo osc_search_url(array('page' => 'search''sCategory' => osc_category_id(), 'sCity' => @$location_cookie['fk_i_city_id'])); ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mariogtz

  • ***
  • 59 posts
thank you very much for the code it works very well for cities but if the user chooses a region it does not work. could you suggest a code for both city and region.

thank you so much.

*

MB Themes

Expand code, you see it for cities, add more for regions and countries.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mariogtz

  • ***
  • 59 posts
I tried. But I don't know what code to add to make it work.

*

MB Themes

@mariogtz
Learn it if you want to do modifications.

Code: [Select]
<?php echo osc_search_url(array('page' => 'search''sCategory' => osc_category_id(), 'sCountry' => @$location_cookie['fk_c_country_code'], 'sRegion' => @$location_cookie['fk_i_region_id'], 'sCity' => @$location_cookie['fk_i_city_id'])); ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots