Re: ozpost shipping module
Hi Rod,
Sorry I've been away for a week.
Ok I added that line of code reuploaded it and went to estimate shipping in my shopping cart (is that right?):unsure:
I've added a screen shot of the shipping estimation as well as the final checkout screen again. I also tried the localisation 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.
Error Error: The exchange rate for Australian (AUD) was not updated via xe. Is it a valid currency code?
However changing it back to AUS it updates fine. I've alse included a screen shot of that.
https://donohues.com.au/images/est.png
https://donohues.com.au/images/est2.png
https://donohues.com.au/images/est3.png
https://donohues.com.au/images/est4.png
https://donohues.com.au/images/est5.png
cheers mate
Re: ozpost shipping module
Quote:
Originally Posted by
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
Re: ozpost shipping module
rod ,
im so close now. that almost completly worked as all the correct money now shows for postage. except when i try to checkout i get a blank page with this :
http://www.donohues.com.au/images/err.png
as soon as i hit refresh its all everything shows up correctly.
soooooo close
sorry to keep bugging you.
mak:hug:
Re: ozpost shipping module
Quote:
Originally Posted by
makatak88
Try disabling the debug output, it is probably messing with things at this point.
Also, what web-browser are you using? (It may or may not be relevant/important).
Cheers
Rod
Re: ozpost shipping module
disabled debug and tested in both firefox and safari. still no luck
Re: ozpost shipping module
until i hit refresh then its great! lol....sigh
Re: ozpost shipping module
Quote:
Originally Posted by
makatak88
until i hit refresh then its great! lol....sigh
Also, if you haven't already done so, you will need to undo the line of code that I asked you to add a few messages ago.
-------------------------------------------------
$_SESSION['ozpostQuotes'] = $this->quotes ; // save as session to avoid reprocessing when single method required
print_r($this->quotes) ; exit ;
return $this->quotes; // all done //
-----------------------------------------------------
Just delete the line
print_r($this->quotes) ; exit ;
Cheers
Rod
Re: ozpost shipping module
brilliant 100%. thnx rod youre an absoulute gem mate
Re: ozpost shipping module
Quote:
Originally Posted by
makatak88
thnx rod youre an absoulute gem mate
http://www.thefreedictionary.com/GEM
gem (jm)
n.
* A pearl or mineral that has been cut and polished for use as an ornament.
* A type of muffin.
Hmmmm.. okaaayyyy :D
Cheers
Rod
Re: ozpost shipping module
There is also; "A person who is as brilliant and precious as a piece of jewellery."
Gotta take those kind of compliments when the come as they are usually far and few between. A nice perk for your day, Rod, don't you think? :yes: