G'day Neil,
now I get this:
via Cart
This implies the user is logged in (IOW, not a guest account). I'm not sure if this is important at this stage, but it is worth noting that due to the way zencart works, the Austpost module gets its data to calculate prices from one of two places.. either the users 'personal' shopping cart, OR, if the user isn't logged in, via data stored in the SESSION variables.
Data stored via the session variables should be copied into the users cart when the log in. I'm not sure at what point in the PayPal Express process this actually occurs.
In other words, the austpost module may be trying to obtain data from the users cart when it should really be getting it from the session data?
C 0 - W 0 - H 2 - L 0 - I
This pretty much confirms that the AustPost module doesn't have valid data to work with. The rest of the error messages can be ignored.
I have the dimensions on the product set
to L=25 W=25 H=2 and 100 gms
The "- W 0 - H 2 - L 0" in the debug message is telling us/me that it has a W=0, L=0, and H=2.
IOW, only the H variable appears valid.
The last, and only other time I've seen something similar to this was when someone was trying to use the austpost module with a zencart version earlier than 1.3.7, so I guess this is the first thing you need to check and confirm.
Another thing that may help in the debug process is to locate line 97 in austpost.php, and alter it so that instead of reading
if (isset($_SESSION['customer_id'])) {
It reads
if (isset($_SESSION['dummy'])) {
This will cause this check to FAIL, and therefore force the data to be obtained from the session variables rather than the users cart.
Needless to say, you should not leave the code this way, because it will break more than it fixes. I'm not even sure if this will have the effect I'm expecting or not, it is merely a means of trying to isolate where the valid data actually exists at the point in time it is being called.
Anyway, with this change in place, and debug still enabled, you should see among the output "via session"
and the "C 0 - W 0 - H 2 - L 0 - I " line should have no zeros.
If this IS the case, then we are one step closer to the solution, however, if you get 'via session' and no change on the zeros I/we are barking up the wrong tree.
Lemme know your results.
Cheers
Rod