OS Property support center

SOLVED !!! Get details about property redirect

  • c8x
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 10 months ago - 9 years 10 months ago #65336 by c8x
Hi, there is a kind of bug in OS Property:

I have 3 languages in my site : english , german and french. Till now everything works fine with the translations.

But if I use "request more details" form in property details view, after filling the form and submit the component always redirects to english site (en in object url), and message " Your request has been sent to agent." is shown.

and it should stay on chosen language with the message in this language too

thanx
Last edit: 9 years 10 months ago by Mr. Dam.

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

More
9 years 10 months ago #65341 by Mr. Dam
Hi,
Please submit ticket and send your site information with super admin account so i can check the issue for you
Thanks
Dam

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

More
9 years 10 months ago #65357 by Mr. Dam
Hi C8x,
Please download this attachment, extract it and copy 2 files (sharing.html.tpl.php, request.html.tpl.php) to overwrite in folder:
Code:
root > components > com_osproperty > templates > theme3
Thanks
Dam
Attachments:

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

  • c8x
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 10 months ago #65387 by c8x
Hi,

thanx Dam! it works.....

it was enough to add:
<?php
$language = JFactory::getLanguage();
$language = $language->getTag();
$language = explode("-",$language);
$language = $language[0];
?>

and then to <form method="POST" action="<?php echo JURI::root()?>index.php?option=com_osproperty&task=property_requestmoredetails&Itemid=<?php echo $itemid?>&lang=<?php echo $language;?>

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

Moderators: Mr. DamNguyen Phu Quan