Deceased
- Join Date:
- Jan 2007
- Location:
- Australia
- Posts:
- 6,263
- Plugin Contributions:
- 4
ozpost shipping module
makatak88:
currency setting. I had code AUS in there for australian dollar I tried changing that to AUD but got a message when I hit update saying Warning: The primary exchange rate server (oanda) failed for Australian (AUD) - trying the secondary exchange rate server.
Ignore this warning. This is your base currency. It is always going to be 1.00000
Besides that, your screenshot shows that this is the only currency that you offer, so there is no point in updating the exchange rates anyway.
If you wish the ozpost module to work with the AUS code
please re-edit the file
/includes/modules/shipping/ozpost.php and change line #188
from:
$aus_rate = (float)$currencies->get_value(AUD) ;
to
$aus_rate = (float)$currencies->get_value(AUS) ;
Resave, and all should be fine.
AUS is the ISO-3 country code for Australia, but both xe.com and oanda both seem to prefer AUD (although xe.com does work with either these days).
Both of these exchange servers appear to be terribly unreliable, with oander a lot worse than xe.com - In fact I've not had a succesful response from oander all afternoon.
Although both codes appear to be acceptable, the zencart install scripts always initialise the code to 'AUD' (which is also why the ozpost module also expects AUD), and I further suspect very few people (if any) have had good reason to change it, as you have done.
I'll add code to the next ozpost release so that it will accept either format... in fact I'm going to take it one step further and if neither of these codes are found it will automatically default to "1.00000", that'll prevent problems if/when someone ever decided to enter 'AU' or 'aus' or 'aud', or any similar variant (that may or may not work with the exchange servers). It will prevent ozpost from giving $0.00 quotes though.
Cheers
Rod