Zen Cart Logo
Forums / Addon Shipping Modules / ozpost shipping module

ozpost shipping module

Views: 403,075

Results 1,581 to 1,600 of 2,251
27 Jul 2011, 7:58 AM
#1581
rodg avatar

rodg

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

28 Jul 2011, 4:10 AM
#1582
makatak88 avatar

makatak88

New Zenner

Join Date:
Feb 2010
Posts:
26
Plugin Contributions:
0

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:

28 Jul 2011, 4:51 AM
#1583
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

makatak88:

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.

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

28 Jul 2011, 4:56 AM
#1584
makatak88 avatar

makatak88

New Zenner

Join Date:
Feb 2010
Posts:
26
Plugin Contributions:
0

Re: ozpost shipping module

disabled debug and tested in both firefox and safari. still no luck

28 Jul 2011, 4:58 AM
#1585
makatak88 avatar

makatak88

New Zenner

Join Date:
Feb 2010
Posts:
26
Plugin Contributions:
0

Re: ozpost shipping module

until i hit refresh then its great! lol....sigh

28 Jul 2011, 5:03 AM
#1586
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

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

28 Jul 2011, 5:23 AM
#1587
makatak88 avatar

makatak88

New Zenner

Join Date:
Feb 2010
Posts:
26
Plugin Contributions:
0

Re: ozpost shipping module

brilliant 100%. thnx rod youre an absoulute gem mate

28 Jul 2011, 6:19 AM
#1588
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

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

28 Jul 2011, 8:52 AM
#1589
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

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:

28 Jul 2011, 12:20 PM
#1590
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

Website Rob:

There is also; "A person who is as brilliant and precious as a piece of jewellery."

I'm hardly brilliant, and probably the exact opposite of precious, so I ruled that particular definition out. :)

Cheers
Rod

18 Aug 2011, 7:19 AM
#1591
e_football avatar

e_football

New Zenner

Join Date:
Feb 2010
Posts:
22
Plugin Contributions:
0

Re: ozpost shipping module

When a customer buys many (4 or so) items, the cubic weight seems to be too high. All my sizes are accurate but sometimes the postage calculation is calculating too high. Is this something others have suffered with?

18 Aug 2011, 9:06 AM
#1592
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

e-football:

When a customer buys many (4 or so) items, the cubic weight seems to be too high. All my sizes are accurate but sometimes the postage calculation is calculating too high. Is this something others have suffered with?

If you can provide a specific example I'll be happy to look into it. I've just done a random check using 4 random items purchased in quantities of 4 from your store and didn't spot anything amiss. Also, try enabling the DEBUG option to get an idea of how packages are created. This is not a simple task, and the code is far from perfect. Cheers Rod

18 Aug 2011, 9:24 AM
#1593
e_football avatar

e_football

New Zenner

Join Date:
Feb 2010
Posts:
22
Plugin Contributions:
0

Re: ozpost shipping module

Rod, here is one example

1 x Arsenal Cap $25.00
1 x Arsenal Jumbo Mug $20.00
1 x Arsenal Birthday Card $5.00
1 x Arsenal Glass Coasters $15.00
Sub-Total: $65.00
Australia Post (Insured Parcel up to 5 Kgs cubic weight): $21.10

This was going from postcode 5075 to 4159.

I have another example too if need be.

18 Aug 2011, 9:34 AM
#1594
e_football avatar

e_football

New Zenner

Join Date:
Feb 2010
Posts:
22
Plugin Contributions:
0

Re: ozpost shipping module

Here is the second one.

Here is another example

1 x Liverpool Mug (Crest) $15.00
1 x Liverpool Crest Key Ring $10.00
1 x Chelsea Beanie $10.00
1 x Chelsea Holdall $40.00
Sub-Total: $95.00
Australia Post (Parcel up to 7 Kgs cubic weight): $19.30

This was going to 2340

Thanks!!!

18 Aug 2011, 9:55 AM
#1595
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

e-football:

Rod, here is one example

1 x Arsenal Cap $25.00
1 x Arsenal Jumbo Mug $20.00
1 x Arsenal Birthday Card $5.00
1 x Arsenal Glass Coasters $15.00
Sub-Total: $65.00
Australia Post (Insured Parcel up to 5 Kgs cubic weight): $21.10

This was going from postcode 5075 to 4159.

I have another example too if need be.

I'll let you resolve the second example yourself. As for this one, it is over complicated... Similar results can be obtained with just the cap and mug: mug 17cm x 14cm x 11cm cap 26cm x 20cm x 16cm If you pack just these TWO items together, the smallest rectangle that they create will be 26cm (the longest dimension) 20cm (the width of this item) 27cm (the sum of the two heights). From the Australia post website Dimensions 27.0cm x 26.0cm x 20.0cm Weight Up to 4kg cubic weight Express Parcel $43.05 Cheers Rod

18 Aug 2011, 12:50 PM
#1596
e_football avatar

e_football

New Zenner

Join Date:
Feb 2010
Posts:
22
Plugin Contributions:
0

Re: ozpost shipping module

Hi Rod,
Thanks.
It seems our problem may be that these items aren't necessarliy solid blocks. So for the example you have calculated, the mug actually fits inside the body of the cap, resulting in a much smaller parcel overall. So we often find with these multi-item parcels that the postage actual cost comes up less than the customer is charged. We offer customers a refund or credit on our site for the difference when this occurs. However we fear that some customers may be put off ordering due to high postage quote in the shipping estimator. Do you have any suggestions on how best we get around this? We wonder whether we should set a postage cap, is it possible to do this? We may sometimes find we have to pay a few extra dollars ourselves but would rather this than lose potential customers.

18 Aug 2011, 1:36 PM
#1597
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

e-football:

Hi Rod,
Thanks.
It seems our problem may be that these items aren't necessarliy solid blocks. So for the example you have calculated, the mug actually fits inside the body of the cap, resulting in a much smaller parcel overall.

Good luck in 'teaching' this to a computer. If the packing algorithms weren't complicated enough, trying to code it so that some items can fit inside some other items will take someone with far more talent that I could ever hope to reach. You need to work with what the computer is capable of, which makes the assumption that all items are a solid block, so the dimensions you provide should be the size of the smallest box/package that the item will fit into for postage. Not the size when worn on the head. :) As I mentioned before, enable the DEBUG output to see exactly how a parcel is created/stacked by ozpost. Don't be too surprised when you discover that 10 of the same item measuring X, Y, Z will give totally different results than 10 different items also measuring X, Y, Z. Cheers Rod

18 Aug 2011, 11:02 PM
#1598
e_football avatar

e_football

New Zenner

Join Date:
Feb 2010
Posts:
22
Plugin Contributions:
0

Re: ozpost shipping module

Thanks Rod, I will look at the Debug today.

Is the cap option a possibility? So we can put a maximum cost for shipping?

19 Aug 2011, 4:11 AM
#1599
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

e-football:

Is the cap option a possibility? So we can put a maximum cost for shipping?

It isn't something that I would be willing to include as a standard configuration option, because it goes against the one of the prime objectives of the module, which is to supply accurate quotes (within its capability to do so).

Also, if this was going to be considered, what method/means would we have of ensuring you don't end up screwing yourself by making the maximum cap a lot lower than actual costs?

The secondary objective of the ozpost module is to protect the merchant from under quoting, which is almost always going to be more detrimental to the long term survivability of a store than over quoting. Plus you get additional 'brownie points' if you do over quote and then provide a refund :)

For many stores, a few $$$ difference in shipping costs isn't going to make much difference in the grand scheme of things, but for many other stores this can make the difference between a profit/loss on the entire sale.

Anyway, if you DID want to add your own maximum cap, you'll need to edit the ozpost.php file, locate the line of code that checks to see if ($quote->cost > 0) { , then just after that line insert another line that'll read something like

if($quote->cost > YOURMAX) $quote->cost = YOURMAX ;

I can't tell you the exact line of code to change because it will vary between versions.

Cheers
Rod

22 Aug 2011, 7:53 AM
#1600
tpeck avatar

tpeck

Zen Follower

Join Date:
Oct 2008
Posts:
197
Plugin Contributions:
0

Re: ozpost shipping module

Hi. I realise the ozpost mod is not in any way responsible for the behaviour of the courier services it supports, but I feel a sense of responsibility myself since I was quite positive and vocal about the e-go.com.au online transport service a while back.

Mmm. It's a pity because everything was going very smoothly until we were given the option to register our credit card online (in my case Amex) to facilitate one-click payments. Soon after, I receive notification of excess debits charged to the card which are bizarre: their automatic weighing system reckons I sent goods weighing 1.5kg inside a 5kg box (obviously using lead as packaging), and again, a 29kg box instead of the maximum 13.5kg boxes I can ever produce.

Cuttting to the chase, no amount of proof is accepted by the company, who just ignore you when you offer it. I've gone back to Fastway.

If you do use e-go, I strongly suggest you don't register your card.

Cheers!