How does one get the listing agent information suitable for display? I see an agentID, but no way to use it to look up the needed info.

Comments

Garrett Albright’s picture

I answered you via email, but for the interest of others…

PIRETS currently only fetches two types of data from servers; property listings and photos. It does not currently manage fetching agent listings, though it can fetch any agent data which is attached to a property listing.

madrock9’s picture

I am not very familiar with PIRETS, as I am currently using another module; but in order to avoid fetching tons of agents info in my database, I wrote a custom function that has as query $query = "{$rets_agent_id}={$agent_id}"; since the agent's id is included [at least in my case] in the Property Search Type, I just provide the agent id nr to my function and that pulls from the rets server all info I need. And then call that function in the template. [I hope I understood right your question]