Welcome, Guest
Username Password: Remember me

EURO Symbol in Confirmation message and email
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: EURO Symbol in Confirmation message and email

EURO Symbol in Confirmation message and email 2 years, 1 month ago #236

  • Raceweek
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Hi,

When users are making a booking we have every currency code set to Australian AUD ($) and this is how it is appearing on the invoice etc. however when the user gets the payment confirmation with the bank details on it the user is getting

"In order to secure your booking, please direct deposit a payment of €324.50 to the bank account below. A copy of the bank account information will also be sent to you by email after you submit this booking."

as you can see with a EURO symbol in front of the sum. I have set JOMRES up with single currency AUD as well can you tell me why or where I need to make this change I have looked everywhere

Cheers
Ben

Re:EURO Symbol in Confirmation message and email 2 years, 1 month ago #237

  • piranha
  • OFFLINE
  • Jomres Extras Developer
  • Posts: 532
Yes, you`re right, thank you for pointing this out.

The fix is very simple. In j00605wire_transfer.class.php, at line 44-47 you see:

$output['DEPOSIT']=$mrConfig['currency'].$currfmt->get_formatted($bookingdata['deposit_required']);
$output['TOTAL']=$mrConfig['currency'].$currfmt->get_formatted($bookingdata['contract_total']);
$bal=(float)$bookingdata['contract_total']-(float)$bookingdata['deposit_required'];
$output['BALANCE']=$mrConfig['currency'].$currfmt->get_formatted($bal);

Where you see $mrConfig['currency'] , replace with $mrConfig['currencyCode']. This will make Jomres use the currency code (AUD) instead of the currency symbol ($). This will also keep compatibility with older Jomres versions.

I will release an updated version that will include this fix on Monday.
Become our fan on Facebook and be the first to find out about new releases, updates and discounts Jomres Extras Facebook Page

Re:EURO Symbol in Confirmation message and email 2 years, 1 month ago #238

  • piranha
  • OFFLINE
  • Jomres Extras Developer
  • Posts: 532
Hm..don`t know why my post is placed above yours...
Become our fan on Facebook and be the first to find out about new releases, updates and discounts Jomres Extras Facebook Page

Re:EURO Symbol in Confirmation message and email 2 years, 1 month ago #243

  • Raceweek
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Hi Pirahna,

ok So I found where in the Database the euro symbol is coming from. it seems Jomres does not seem to change the globalCurrency field in the jos_jomres_site_settings table in the site database. Jomres only seems to update the globalCurrencyCode field which is ofcourse the country code and not currency symbol which the globalCurrency field seems to be responsible. Maybe this coming from you might get this fixed in the next release of Jomres. I know this is not the forum but I wanted to bring it to your attention that this is not a problem with the Wire Transfer plugin.

After the fix you posted above it put the AUD infront of the deposit or full contract amount (For Example: AUD299.00) on the email and left the EURO symbol on the website confirmation. In Australia we do not display costs like this, instead use the dollar symbol (For Example $299.00).
So I reversed the changes and then updated the database as below to fix all problems. Like I say though there is no setting in Jomres to actually change the globalCurrency field that I can find so it has to be done manually for now.

This image is hidden for guests. Please log in or register to see it.

Anyway, we are getting through these small issues slowly. and seem to be getting there. I am now working on the email templates and invoice design.

Here is an image of our actual working email template.
This image is hidden for guests. Please log in or register to see it.

Thanks for your help so far.
Last Edit: 2 years, 1 month ago by Raceweek.

Re:EURO Symbol in Confirmation message and email 2 years, 1 month ago #245

  • piranha
  • OFFLINE
  • Jomres Extras Developer
  • Posts: 532
Jomres v4.4+ has a new currency class feature that will automatically select the currency code for you. I don`t use this because for backward compatibility reasons. All you have to do to use it and display the currency code in the gateway screen and in the email is to make some small changes in j00600wire_transfer.class.php and j00605wire_transfer.class.php where you see:

$output['DEPOSIT']=$mrConfig['currencyCode'].$currfmt->get_formatted($bookingdata['deposit_required']); $output['TOTAL']=$mrConfig['currencyCode'].$currfmt->get_formatted($bookingdata['contract_total']); $bal=(float)$bookingdata['contract_total']-(float)$bookingdata['deposit_required']; $output['BALANCE']=$mrConfig['currencyCode'].$currfmt->get_formatted($bal);

replace with:

$output['DEPOSIT']=output_price($bookingdata['deposit_required']);
$output['TOTAL']=output_price($bookingdata['contract_total']); $bal=(float)$bookingdata['contract_total']-(float)$bookingdata['deposit_required'];
$output['BALANCE']=output_price($bal);
Become our fan on Facebook and be the first to find out about new releases, updates and discounts Jomres Extras Facebook Page
  • Page:
  • 1
Time to create page: 1.58 seconds