OS Property support center

SOLVED !!! Remove Space from Currency

  • Aaron Fisher
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago - 9 years 10 months ago #71773 by Aaron Fisher
SOLVED !!! Remove Space from Currency was created by Aaron Fisher
Hi

Whereabouts an I remove the space between the currency symbol please.

e.g. £ 299 should be £299

Thank you
Last edit: 9 years 10 months ago by Dang Thuc Dam.

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

More
9 years 10 months ago #71798 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Remove Space from Currency
Hi,
To remove the white space between Currency symbol and amount, please follow these steps
1. Open file:

components > com_osproperty > helpers > helper.php

2. Find
Code:
if ($configClass['currency_position'] == 0) { return HelperOspropertyCommon::loadCurrency($curr) . " " . HelperOspropertyCommon::showPrice($price); } else { return HelperOspropertyCommon::showPrice($price) . " " . HelperOspropertyCommon::loadCurrency($curr); }

and change to
Code:
if ($configClass['currency_position'] == 0) { return HelperOspropertyCommon::loadCurrency($curr) . HelperOspropertyCommon::showPrice($price); } else { return HelperOspropertyCommon::showPrice($price) . HelperOspropertyCommon::loadCurrency($curr); }

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

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

  • Aaron Fisher
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 10 months ago #71819 by Aaron Fisher
Replied by Aaron Fisher on topic Remove Space from Currency
Great, works perfectly...just couldnt find it anywhere originally :)

Thanks very much... I have another question about calling the 'rent_time' from outside the OS component, I will open a new thread.

Thanks again

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

Moderators: Dang Thuc DamNguyen Phu Quan