Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: [SOLVED] Removing "$" symbol

[SOLVED] Removing "$" symbol 16 years 5 months ago #1737

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
The currency selection in the settings of DT Register currently only apply to PayPal. To hard-code the component to use a different currency symbol than $, make the following changes in the dtregister.php found in:
/components/com_dtregister/

Wherever you find this code:
else 
	$currency_symbol=\'$\';

Change it to:
else 
	$currency_symbol=\'€\';

For an example, I just used € which will give the Euro currency symbol. Insert the symbol or the alt code for your symbol inside of the single quotes.

This is found on or around lines: 660, 1883, 1888, 3483, 3488, 5421, 7538, 9790, 11359, 12205, 13433, 14303, 15665, 15925, 16597, 17066, 18554, 19704, 20278, 20851, 21956, 22644, 23630, 24434, 24964

This solution will take care of your issue until we improve this in the next release.

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

[SOLVED] Removing "$" symbol 16 years 5 months ago #1740

  • nigelm
  • nigelm's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Hi

I tried your suggestion and and it still doesn\'t work. I added some text to the sentance

Your total Registration cost in GBP: $23.50

as a work around.

I checked everywhere. Whilst the are many references to TOTAL_REGISTRATION_COST, the possible location is line 5536 <?php echo $currency_symbol; ?> as this is has no reference to \'$\'. I even tried using the hex ref &#163 but no change.

Is the \'$\' being copied in the code <?php echo numberFormat($amountCharged,2)?> on the same line? I don\'t know php but I would really like you to look at it as I\'ve already have a complaint.

Thanks in advance.

Regards, Nigel

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

[SOLVED] Removing "$" symbol 16 years 4 months ago #1746

  • gstyles
  • gstyles's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
I have the same problem, my site shows Your total Registration cost: $100.00 and my site is in Euros. I have tried the language file and dtregister.php but the setting is not there. DT chaps were is it? This is sloppy for a paid for component. I think the thread should be changed from solved to unsolved until such time as a solution is found. Thanks

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

[SOLVED] Removing "$" symbol 16 years 4 months ago #1761

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
Turns out there were a few hard-coded $ in the code. We have replaced them with the $currency_symbol code and the modified file is found in the new 2.2.3 release that is just hours away now. The next full release will remove the need for this hack, but for now, this should work once you have the new 2.2.3 file. Thanks.

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

[SOLVED] Removing "$" symbol 16 years 3 months ago #1916

  • paal
  • paal's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
I just bought and downloaded dt-register 2.2.3, and I have the same problem with the currency sign (it becomes $). My default currency is set to Norwegian Krone.

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

  • Page:
  • 1
  • 2
Time to create page: 0.238 seconds