24 replies [Last post]
daniel.s's picture
Offline
Joined: 10/10/2007
Juice: 87
Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Line 164.

Line 164.
The key of each quote should be the accessorial key. If you're only doing international, it should start with 2 and then increase sequentially.

To do this the easy way, change the foreach() loop on line 153 to

<?php
 
foreach (_uc_auspost_services(null,$type) as $key => $accessorial) {
?>

Then you can use $quotes[$key] = array(...) and _uc_auspost($key, $quote['days']) instead of that business with array_flip().

daniel.s's picture
Offline
Joined: 10/10/2007
Juice: 87
That worked nicely. I've

That worked nicely.

I've never used foreach in that way. That's quite handy. Certainly beats "that business" with array_flip() Eye-wink Sticking out tongue

72dpi's picture
Offline
Joined: 10/07/2007
Juice: 134
Awesome work Daniel. Will be

Awesome work Daniel.

Will be closely following this one, as it is essential for all Australian users.

Great work too (As usual) Lyle.

Ryan..

ssherriff's picture
Offline
Early adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/08/2007
Juice: 215
Re: Awesome work Daniel. Will be

Just wondering where the development of the AustPost shipping module is. I was going to have to develop one from scratch for a new shop I'm working on, but if this one is on it's way, I wouldn't mind helping finishing it up. Has it progressed, or is the download above still an up-to-date version?

Cheers,
Steph

daniel.s's picture
Offline
Joined: 10/10/2007
Juice: 87
Re: Re: Awesome work Daniel.

Sorry for the lack of feedback guys. I am subscribed to this thread, but I must have email notifications turned off (or they're getting eaten by my spam filter).

I've got the basics happening with my version of the module. It's attached to this post.

I haven't yet gotten around to implementing some sort of disclaimer. Australia Post requires you to use a disclaimer nowadays if you're using their eDRC.

A side note, I'm not sending item dimensions to the DRC as they have no bearing on the actual quote cost or shipping time. I suppose we could add some internal validation down the track, but for my purposes this is fine as it is.

Have a try and let me know how you go.

AttachmentSize
Australia Post Shipping Quote module v1.0 36.49 KB
ivan.g's picture
Offline
Joined: 11/27/2007
Juice: 22
Module doesn't seem to be working

Hi and thank you for the module.

As there's no readme file - could you please tell me - what should be done in order to use the module? As I have enabled it through Drupal interface, set up all parameters and it doesn't seem to show up during checkout.

I have tried two independent websites with different OS/PHP/MySQL versions (one of them has the latest) and there's still no difference.

Is there any specific requirements for the module to work? Or what could be wrong with the module?

ivan.g's picture
Offline
Joined: 11/27/2007
Juice: 22
Hi, Again. Here're few error

Hi, Again.

Here're few error message I receive from admin/store/settings/quotes/methods (Shipping quote settings) page:

"Dividing by zero in ..." don't remember the line number - the actual code of this line is:
$pkg_weight = ($weight / $num_packages);

After I specified $num_packages = 1; I am receiving the following error (through messages):

* No measurement passed to the _length_to_mm function of uc_auspost
* No measurement passed to the _length_to_mm function of uc_auspost
* No measurement passed to the _length_to_mm function of uc_auspost
* No measurement passed to the _length_to_mm function of uc_auspost

I have also disable all other shipping options and left only auspost ON - now shipping quotes bring no result at all.

Any ideas?
I am using Ubercart alpha8

daniel.s's picture
Offline
Joined: 10/10/2007
Juice: 87
Re: Hi, Again. Here're few error

Without looking at my code yet, do your products specify weights and dimensions?

daniel.s's picture
Offline
Joined: 10/10/2007
Juice: 87
Re: Re: Hi, Again. Here're few error

Also, you need to select which shipping methods you'd like to use in the uc_auspost settings area

daniel.s's picture
Offline
Joined: 10/10/2007
Juice: 87
Re: Re: Re: Hi, Again. Here're few error

I've attached a new version which ignores products which don't specify a weight. I would have liked to have been able to attach both an admin and customer comment to the order denoting which products weren't included in the quote - but i'm under the impression that you can't use uc_order_comment_save until the next stage of checkout (review).

I'm not going to include any instructions yet, as it's only posted up here for testing purposes.

A few notes:
- After installing, make sure you select which shipping methods you would like to use. None are selected by default
- Make sure that all your products include weights. The other dimensions don't matter too much. They have no bearing on the actual quote, so I don't use them. I was not going to go to the hassle of writing "boxing" code that calculates package dimensions when multiple items are packed together. Reading about that by the developer of the osCommerce or ZenCart AusPost module developer was enough to turn me off that idea.
- The onus is on the store admin to make sure that their products are physically shippable - and to use the 'Product and its derivatives are shippable' property of each product. I'm about to re-include code which checks if $product->shippable is 'true'. If it isn't, the product obviously won't be included in the quote.

AttachmentSize
uc_auspost.zip 27.14 KB
gerard's picture
Offline
Joined: 03/04/2008
Juice: 2
Shipping dimensions

Just a note to inform that (to the best of my knowledge) shipping dimensions do influence postage costs.

For parcels exceeding 1kg 'actual' weight, AusPost assesses based upon 'Actual' or 'Cubic' weight: Whichever is greater. Cubic weight is LxWxH(m) x250.
I ship large, lightweight items and I find this policy is enforced at my LPO. The eDeliver DRC should be taking this into account when it returns postage costs.

I'm not currently using Ubercart but this may be relevant to those creating/using this module.

glennnz's picture
Offline
Joined: 01/20/2009
Juice: 451
v5.x?

Hi

Is there a Drupal v5.x UC 1.x version?

Thanks

Glenn

glennnz's picture
Offline
Joined: 01/20/2009
Juice: 451
Sorry, being a dick. Found

Sorry, being a dick.

Found the v5 version (am using the uc_auspost_0.zip version), but I can't get it to work at all.

At checkout, it tells me Receiving Quotes... and then the panel comes up blank.

I have set the store address, and I am trialling with a correct shipping address.

Cheers

Glenn

avidaicu's picture
Offline
Joined: 07/18/2011
Juice: 12
Australia Post Shipping Quote module v1.0

Is there any way this module can be implemented for Drupal 6.22, I'm getting "This version is incompatible with the 6.22 version of Drupal core."

thanks,
Andrei

daniel.s's picture
Offline
Joined: 10/10/2007
Juice: 87
Re: Cart Review Problems

Awesome. Thanks for the reply and for taking the time to look at it.

Like I said, i'm not a PHP developer (I'm a Systems Admin by "trade"), so any help is greatly appreciated.

Also, thanks for all your work on ubercart. It's the only open-source cart that I could recommend to anybody - it's just neat, feature packed, and nicely extensible.

daniel.s's picture
Offline
Joined: 10/10/2007
Juice: 87
Re: Cart Review Problems

I am no longer using or maintaining this module or the eWay module, so whoever needs it can feel free to use it or rewrite it.

Peter_T's picture
Offline
Joined: 03/13/2008
Juice: 4
Thanks for your efforts!

Hi Daniel. Thanks for you efforts on both the Auspost and the eway modules. I am currently in the early stages of development using ubercart with drupal. I have a fair amount of experience with drupal but this is my first time trying ubercart. I tried using the e-commerce modules a while back (a couple of years ago) but got frustrated and in the end I developed a site using a combination of drupal and zen cart. (I noted your reference to zencart in this thread).

The same client now wants a 'new' integrated website/online store so I'm trying to get ubercart working. I am not a coder but a sys-admin like you. (I play around with basic bits and pieces)...

My main reason for posting is to say "thanks" for the work you have done so far and to indicate that "I'm here" to anyone else looking at these two issues: Auspost & eWay.

I do have access to a 'live' eWay account so if I can help someone with testing, I'm happy to do so.

The eway module currently doesn't appear to be working (for me) in test mode. I have done a few test runs and it appears to work (payment appears to be accepted) but it does this even when it shouldn't (ie. when I purposely use the wrong 'test' amount etc). It sets the order status to 'pending' and and not 'payment received' or 'complete' ( a good thing!) but from the users point of you, it says "Thank you for you order" and leaves the impression the order was successful. No errors.

Anyway, all this is just by way of a 'heads up' for anyone else out there playing with the eway module.

Cheers.

72dpi's picture
Offline
Joined: 10/07/2007
Juice: 134
Damn,m Sad to hear that. I

Damn,m

Sad to hear that.

I will ask my mate if he would take a look at it.

perhaps we should raise a bounty for this one?, it's pretty critical that Australians get this one working....

thanks for all your work Daniel, it is really appreciated...

Adrian's picture
Offline
Joined: 04/09/2008
Juice: 19
Re: Cart Review Problems

Is anyone using this successfully? ive installed the module into modules folder, and it comes up in Shipping quote settings, where i can set up all the options for it but in checkout i get the default message:

"There were problems getting a shipping quote. Please verify the delivery and product information and try again.
If this does not resolve the issue, please call in to complete your order."

i have a default postage address set and am using an australian address as the buyer.
ive tried installing it in the ubercart directory with the same result.
sorry if my problem is a bit vague but im still a noob at drupal/ubercart

Adrian's picture
Offline
Joined: 04/09/2008
Juice: 19
Re: Re: Cart Review Problems

*cough* please disregard above... i had not set my address in store settings, only shipping settings

yes im a noob

sorry Sticking out tongue

holeepassion's picture
Offline
Joined: 05/06/2008
Juice: 18
How much is this module working now ?

What are the hurdles still existing ?

Thank you

Best regards

Administrator
holeepassion.com

baalsgate's picture
Offline
Joined: 09/12/2007
Juice: 46
Progress with this module ?

Hi Im also in Australia , my experience developing anything in ubercart is minimal but im willing to put some time into it having some programing experience and well because I need this .

Has any more progress been made with this module ?

Implementation of Size based Cubic cost and any clean or debugging needed.

Add the following fields to products ( width , height, length and weight )
Add group Australia Post Calculator and put them under that.

This gives us the item info to at least work with for calculation of individual items maybe a default size box could be defined if the sizes are blank

As for code i dont know I will have to figure out how this works and see how I go .

But if anyone has done further work on this lets get the development done and the module completed, if there is a place for better group code development lets get it going there and let me know

thanks

baalsgate's picture
Offline
Joined: 09/12/2007
Juice: 46
getting quotes

i have just installed it and getting error first up of needing a destination country code
so its not working for me yet.

baalsgate's picture
Offline
Joined: 09/12/2007
Juice: 46
no luck in getting this going

I have been trying to get this working but have had no success It just does not seem to complete the query.

maybe the requirements have changed for this to work any one still using this ?