OS Property support center

Agent Registration Redirect

  • wesley
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 7 months ago #41234 by wesley
Agent Registration Redirect was created by wesley
Hi,

I would like to direct the agents registration page to a specific URL instead of the homepage. How can I do this?

Any help is much appreciated.

Thanks,
Wesley

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #41249 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Re: Agent Registration Redirect
Hi Wesley,
You can setup the Joomla menu to layout: OS Property> Agent/ Owner registration
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • wesley
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 7 months ago #41253 by wesley
Replied by wesley on topic Re: Agent Registration Redirect
Hi,

Sorry I may have been misleading in my description. I meant that I want to redirect them after the registration page. So when they suit their registration form I would like it to goto another page instead of
The
Homepage .

Thanks for all your help!
Amazing support.

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #41268 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Re: Agent Registration Redirect
Hi Wesley,
What's the page that you want to redirect to?
You can edit the redirect link in:
components > com_osproperty > classes > agent.php
find
if($configClass == 0){
//send email to admin
$emailOpt[0]->customer = $user->name;
$emailOpt[0]->agent_id = $agent_id;
OspropertyEmail::sendAgentApprovalRequest($option,$emailOpt);
$msg = JText::_('OS_THANKYOU_TO_BECOME_AGENT1');
$mainframe->redirect(JUri::root(),$msg);
}else{
$msg = JText::_('OS_THANKYOU_TO_BECOME_AGENT2');
$mainframe->redirect(JUri::root(),$msg);
}
and change JUri::root() to the page that you need to redirect, for example
$mainframe->redirect("http://abc.com",$msg);
Good luck
Dam

Please Log in or Create an account to join the conversation.

Moderators: Dang Thuc DamNguyen Phu Quan