OS Property support center

SOLVED !!! Currency converter is not working

  • quickchilli
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 9 months ago - 7 years 10 months ago #85271 by quickchilli
Im struggling with why the currency converter is not responding.
I have upgraded to the latest version and updated the modules as-well.
But when I try to change the currency in the front-end the value vanishes.
I have attached a before and after image to show you.
before:


after:



The live site I had to turn the current converter off as it is simple making clients frustrated.

I would like to get this fixed please, any help would be great.

Thanks
Paul
Attachments:
Last edit: 7 years 10 months ago by Mr. Dam.

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

More
8 years 9 months ago #85275 by Mr. Dam
Hi Paul,
Please submit ticket and send your site url with super admin account for checking the problem
Thanks
Dam

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

More
8 years 2 days ago #98100 by Mark McCulligh
Replied by Mark McCulligh on topic Currency converter is not working, even after upgr
I am having the same problem. When you select a currency the value is changed to 0.00.

Is there something else I need to enable for the currency converter to work?

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

More
7 years 10 months ago #100025 by MelanieB
Hi Did you manage to fix this? I too still have this problem.

Mel

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

More
7 years 10 months ago #100028 by Mr. Dam
Hi,
To fix the issue, please following these steps:
1. Open file: root > components > com_osproperty > helpers > common.php
2. Find:
Code:
$search = array ("'<script[^>]*?>.*?</script>'si","'<[\/\!]*?[^<>]*?>'si","'([\r\n])[\s]+'","'&(quot|#34);'i","'&(amp|#38);'i","'&(lt|#60);'i","'&(gt|#62);'i","'&(nbsp|#160);'i","'&(iexcl|#161);'i","'&(cent|#162);'i","'&(pound|#163);'i","'&(copy|#169);'i","'&#(\d+);'e"); $replace = array ("","","\\1","\"","&","<",">"," ",chr(161),chr(162),chr(163),chr(169),"chr(\\1)"); $data = @preg_replace($search, $replace, $data); $result = explode(",",$data); return $result[1];

and change to
Code:
return substr($data, 11, 6);

Good luck
Dam
The following user(s) said Thank You: MelanieB

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

More
7 years 10 months ago #100031 by MelanieB
Thank you Dam, works beautifully now!

Kind regards

Mel

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

More
7 years 10 months ago #100087 by Mark McCulligh
Replied by Mark McCulligh on topic Currency converter is not working, even after upgr
Thanks for the fix. It worked great.

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

Moderators: Mr. DamNguyen Phu Quan