*

san37

  • ***
  • 89 posts
Items are only one category
« on: December 30, 2015, 07:51:03 PM »
I want to make on the card were ads for just one category, real estate
Please tell me what files are responsible for this, and what am I looking for?

*

MB Themes

Re: Items are only one category
« Reply #1 on: December 30, 2015, 08:00:54 PM »
@san4747
Did not fully understand what you want to do...
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

san37

  • ***
  • 89 posts
Re: Items are only one category
« Reply #2 on: December 31, 2015, 12:50:42 PM »
I want the map to display only ads from category real estate, houses apartments
Other categories to ban the placement of ads on the map

Where to start, how to implement it please

*

MB Themes

Re: Items are only one category
« Reply #3 on: December 31, 2015, 12:55:38 PM »
@san4747
Go to file:
oc-content/plugins/radius_search/listings_map.php

Here is everything regarding map and items on it.
Try this following.

Find line:
Code: [Select]
$radiusSearch = new Search();
Bellow this line add code:
Code: [Select]
$radiusSearch->addCategory( 4 );
Replace 4 with ID of category you want.
Not sure if it will works, but you got basic idea ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

san37

  • ***
  • 89 posts
Re: Items are only one category
« Reply #4 on: January 09, 2016, 06:40:05 PM »
So did not help, the card does not work, are there any other options, or where you can read about it?
That only one category is displayed

*

MB Themes

Re: Items are only one category
« Reply #5 on: January 09, 2016, 06:47:21 PM »
@san37
Best is to check:
http://www.w3schools.com/php/php_intro.asp

Or directly their documentation.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots