#746 – Ricerca automatica zone

Posted in ‘Domus Organizer’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Tuesday, 26 September 2017 20:58 CEST
Quale file posso modificare per aggiungere l'autoricerca delle zone?
Il problema che nel file model_advancedsearch.php l'array $zones mi risulta vuoto.
Ho modificato anche autosearch.php di propeties modificando il codice come segue
foreach($positions as $position)
{
	$distr[] = $position->ct_id_districts;
	$towns[] = $position->ct_id_towns;
	$zones[] = $position->ct_id_zones;
}

$a=$properties->districts_search($distr)
			->towns_search($towns)
			->zones_search($zones);
Custom Fields
Joomla! Version 3.7
Extension version (x.y.z) 4.2.1
 
astegiudiziarieassistenza
Thursday, 28 September 2017 09:16 CEST
Salve,

deve essere modificato il file views/properties/tmpl/autosearch.php.
Intorno alla riga 68 vengono impostati i parametri per la ricerca per province e città, può aggiungere anche quella per zone usando la funzione zones_search() della variabile $properties.
Anche in questo caso tale funzione accetta una array con gli ID delle zone da ricercare.
signature.png
tampe125
Tuesday, 17 October 2017 21:45 CEST
Grazie, modifica effettuata.
Chiudo il ticket
 
astegiudiziarieassistenza
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

SUPPORT IS PROVIDED IN ENGLISH OR ITALIAN ONLY.
Please make sure that your question is not answered in the documentation before submitting a ticket.
It will save you time!

SUPPORT IS PROVIDED TO SUBSCRIBERS ONLY.
You can review all public tickets, but if you want to open a new ticket you must have a valid subscription.
You can purchase it here