Quote:
Originally Posted by Bradvhomes
That sounds awesome. I also am having an issue setting up a search for particular areas to provide all the current results for single family homes and condos. Below is a sample of the snippet I'm trying to use:
/* Snippet Settings */
$_REQUEST['snippet_title'] = 'Arbour Lake Homes';
$_REQUEST['snippet_price_table'] = true;
/* Search Subdivision */
$_REQUEST['search_subdivision'][] = 'arbour lake';
/* Property Type */
$_REQUEST['idx'] = 'single-family';
$_REQUEST['idx'] = 'condo-or-townhouse';
//$_REQUEST['idx'] = 'mobile';
//$_REQUEST['idx'] = 'rural';
Thanks guys, you have been a great help. I'm very glad I made the switch and will definitely spread the word around the office.
|
Hi Brad! I've updated the REW IDX Platform to allow you to search more than one "IDX" at a time. This is the snippet code that you want to use (instead of the above):
Code:
/* Union Search */
$_REQUEST['union'] = true;
/* Property Type */
$_REQUEST['idx'][] = 'single-family'; // Single Family
$_REQUEST['idx'][] = 'condo-or-townhouse'; // Condo / Townhouse
//$_REQUEST['idx'][] = 'mobile'; // Mobile
//$_REQUEST['idx'][] = 'rural'; // Rural
The additional ['union'] criteria is set to true (
required), and then the property type criteria has the "[]" added to them. This combines the options instead of over writing them.
The lines above will search Single Family & Condo / Townhouse listings. You can remove the comments ("//") to search by Mobile and Rural as well. Or even make up your own crazy combination. :-P
Let me know if you have any issues with this new additional to the CIR Snippets.
Cheers!