*

miyedos

need ONLY chosen category items not all listing on map
« on: March 31, 2016, 07:46:40 AM »
when i choose for example 'for sale' category and on that page the map shows all categories,

can i change the radius ONLY choosen category items on map which im already on the category page?.

like:

i clicked on home page for sale category

i want the map shows nearby ONLY for sale category items, laptops, computers... NOT real estate, community etc...

how? or any trick?

*

MB Themes

  • Best Answer
  • Re: need ONLY chosen category items not all listing on map
    « Reply #1 on: March 31, 2016, 08:49:26 AM »
    @miyedos
    This should already work.
    If you look into file:
    oc-content/plugins/radius_search/listings_map.php

    You have there:
    Code: [Select]
      if(osc_is_search_page()) {
        ...
        $cat = osc_search_category_id();

        ...
        if($cat[0] <> '' && $cat[0] <> 0) { $radiusSearch->addCategory($cat[0]); }

    In this part you can try to print result if category ID is correctly estimated by:
    Code: [Select]
    print_r($cat);
    print_r($cat[0]);
      To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

    *

    miyedos

  • Best Answer
  • Re: need ONLY chosen category items not all listing on map
    « Reply #2 on: March 31, 2016, 05:53:11 PM »
    thanks. working on it now