Community Forums

[Released] Australia Post Shipping Module (Read 1st post!)

Free Extensions (Modules, Payments, Shipping, Order Totals, Feeds) can be contributed here.

[Released] Australia Post Shipping Module (Read 1st post!)

Postby SuperJuice » Wed Aug 12, 2009 11:40 pm

Hi all,

The latest version of the Extension is available from the following page:
http://www.opencart.com/index.php?route ... on_id=1011

If you have any feedback, feature requests, bug reports or module suggestions please don't raise them on the Extension page, raise them IN THIS THREAD.

Thanks.
Last edited by SuperJuice on Sat Apr 21, 2012 1:23 am, edited 3 times in total.
SuperJuice
 
Posts: 282
Joined: Wed Aug 12, 2009 11:06 pm

Re: Australia Post Shipping Module (v1.0)

Postby SuperJuice » Fri Aug 14, 2009 2:53 am

Update: Just released v1.1

It appears that I actually wrote the original module on OpenCart v1.3.0. I did a fresh install of OpenCart v1.3.1 last night and due to a change made in the v1.3.1 update this module was showing an error in the admin control panel (didn't impact functionality). I have now fixed this, so please use v1.1 if you are planning to use this module.

*knip*

-edit-

I just noticed that OpenCart v1.3.2 has been released, so I am hoping this hasn't affected this module and will test it tonight to confirm. :P
SuperJuice
 
Posts: 282
Joined: Wed Aug 12, 2009 11:06 pm

Re: Australia Post Shipping Module (v1.0)

Postby Daniel » Fri Aug 14, 2009 5:23 am

pelase reupload. I just fixed a bug int he contributions section.
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
User avatar
Daniel
Administrator
 
Posts: 5347
Joined: Fri Nov 03, 2006 5:57 am

Re: Australia Post Shipping Module (v1.0)

Postby SuperJuice » Fri Aug 14, 2009 5:53 am

Daniel wrote:pelase reupload. I just fixed a bug int he contributions section.


Done.

Thanks Daniel.
SuperJuice
 
Posts: 282
Joined: Wed Aug 12, 2009 11:06 pm

Re: Australia Post Shipping Module (v1.0)

Postby SuperJuice » Fri Aug 14, 2009 8:35 am

Have confirmed V1.1 works correctly and as expected with OpenCart v1.3.2.
SuperJuice
 
Posts: 282
Joined: Wed Aug 12, 2009 11:06 pm

Re: Australia Post Shipping Module (v1.0)

Postby blackhand » Fri Sep 04, 2009 8:06 am

Superjuice

like you, I have come from cubecart.

it would be good to see your AustPost shipping mod handle international post like the cubecart version did.

what are the chances of you getting around to putting it in?

edit. cheers for the contribute by the way.
blackhand
 
Posts: 9
Joined: Tue Aug 11, 2009 1:04 am

Re: Australia Post Shipping Module (v1.0)

Postby johnmax » Tue Nov 10, 2009 9:54 pm

i 've got an error on opencart 1.34 when choosing the shipping method :

Australia Post
Error interfacing with Australia Post (connection)

any fix ? thanks
johnmax
 
Posts: 2
Joined: Wed Sep 23, 2009 4:14 am

Re: Australia Post Shipping Module (v1.0)

Postby Qphoria » Tue Nov 10, 2009 10:15 pm

likely that is has not been updated to work with 1.3.4
ImageImage
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 19196
Joined: Mon Jul 21, 2008 2:02 pm
Donate to Qphoria

Re: Australia Post Shipping Module (v1.0)

Postby SuperJuice » Wed Nov 11, 2009 2:11 am

As the error says, it appears to be a connection issue to the Australia Post site. I doubt that portion of the module has anything to do with 1.3.4 update (will need to confirm when I have time)

Is the host your are using allowing http connections outbound (port 80)? it needs this to do the live calculation.

Test the connectivity and let me know.
SuperJuice
 
Posts: 282
Joined: Wed Aug 12, 2009 11:06 pm

Re: Australia Post Shipping Module (v1.0)

Postby datacon » Tue Nov 17, 2009 2:04 am

I have OpenCart 1.3.4 and installed it, everything works great except for the Australia Post Plugin which I really need to work. I see that Australia Post module is included in the 1.3.4 by default.

Australia Post
Error interfacing with Australia Post (connection)

It is setup in the admin, all variables are set, and i have changed them all around for testing purposes, and I have also tried different times of the day/night. I have also checked my webhost supports inbound/outbound traffic to port 80. So that cancels out the link between my webhost and the australia post website. Even if I try the link below in my browser it works fine:

http://drc.edeliver.com.au/ratecalc.asp ... 1&weight=1

I need any help I can get. Thanks
Adam ( adam@datacon.net.au )
datacon
 
Posts: 57
Joined: Mon Nov 16, 2009 10:10 pm

Re: Australia Post Shipping Module (v1.0)

Postby SuperJuice » Tue Nov 17, 2009 2:14 am

I currently don't have a lot of time to look at it as I haven't upgraded to 1.3.4 yet.

I will investigate the issue, it may be worthwhile stepping through the module to see why it is falling back to that error.

Was the Australia Post module working on the same exact server on a previous version of OpenCart?

The fact you can access the link in your browser means absolutely nothing, in OpenCart you aren't making the connection to Australia Post when it's calculating the postage, the webserver is.

If you have access to ssh on the server try "telnet auspost.server.name 80".

I will hopefully get a chance to look at this tonight.

-edit-

I just had quick skim through the code and noticed destination_postcode is static, which it shouldn't be, not sure how that made it in.. but that also needs to be fixed.
SuperJuice
 
Posts: 282
Joined: Wed Aug 12, 2009 11:06 pm

Now Integrated - No longer supported by original author

Postby SuperJuice » Tue Nov 17, 2009 6:19 am

Well.. I am glad to say the problem has nothing to do with me but to do with the modifications made to my module when it was merged into Opencart. Not only was it heavily modified, all credit was removed (thought this was a 'Community'?) and a lot of the module was changed inconsistently so what appears to the end user as something the module _should_ do it actually won't.

I don't agree at all with what has been done, and will no longer be supporting this code because of the nature in which it was modified and merged into Opencart without any obvious testing (hate to think of the implications of weight units etc. as no conversion happens in the module itself). I concede the module was far from perfect before, but I now no longer know the state of what was modified and don't have the time or energy to go back through it. The only plus I can see from this is the destination_postcode that accidentally made it in to the last release was fixed or wasn't in the version merged so this won't need to be re-fixed.

To fix the Australia Post connection problem is extremely basic, when the module administration control panel was modified, someone decided to change the name of the "Origin" postcode to auspost_postcode, which is completely non-descript. You will also notice that the admin control panel now just says "Post Code" which actually means nothing out of context, this is your "origin", ie. where the parcel will be shipped from.

The code that needs to be 'fixed' now that they have renamed the origin variable is auspost_origin in the following file:

/var/www/opencart/catalog/model/shipping/auspost.php

All references to $this->config->get('auspost_origin') need to be changed to $this->config->get('auspost_postcode')

The module was failing because the config name changed so there was no origin in the URL passed to Australia Post.

Whoever modified the admin side also removed validation code from the administration module for 'auspost_handling' so it is now no longer forced into a 0.00 style currency. Because of this it fails the validation check in the calculator itself and the handling cost won't be added or charged to the customer, something end users should probably be aware of.

Can't guarantee anything else works as I don't know what other parts of the module have been changed and I don't have the energy to bug check / test other peoples modifications.

It's been swell.
SuperJuice
 
Posts: 282
Joined: Wed Aug 12, 2009 11:06 pm

Re: Australia Post Shipping Module (v1.0)

Postby Qphoria » Tue Nov 17, 2009 7:18 am

It would have likely needed heavy modification for the guestcheckout ajax callback. I've had to change all my shipping modules in design for that as well to support the passing in of the country_id, zone_id, and postcode. But I'm not defending broken code.
ImageImage
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 19196
Joined: Mon Jul 21, 2008 2:02 pm
Donate to Qphoria

Re: Australia Post Shipping Module (v1.0)

Postby datacon » Tue Nov 17, 2009 7:19 pm

Thank you for your reply SuperJuice. It is much appreciated, to see the author of a module to support the community as best he/she can.

It is a shame the same support doesnt seem to come from the author of OpenCart, who has taken your module without even congratulating you that its made it in to the real version of OpenCart, or thanking you, or leaving your credits in the php commented code, and releasing 1.3.4 without even proper testing of the module as it does not work out of the box in the final release of 1.3.4.

I hope the author shows more appreciation for the comunity that supports the software, I sure do appreciate all the effort from everyone putting their time into this great shopping cart - thank you OpenCart Author, and all module authors!! It is a great product, and as long as there is support from everyone, the project will continue, and it certainly should, its a great cart that can only get better!

Hope I can sort something out for this AUSPOST module to work better.
datacon
 
Posts: 57
Joined: Mon Nov 16, 2009 10:10 pm

Re: Australia Post Shipping Module (v1.0)

Postby SuperJuice » Wed Nov 18, 2009 5:14 am

I received quite a few emails about this module, and several people appear to be put out by what has happened here.

It frustrates me to see code I have spent time on released in this state, so I wrote a fix for it tonight

http://www.pixeldrift.net/opencart/open ... ion.tar.gz

Drop the auspost.php into the following location in your 1.3.4 install (backup your previous version)
/opencart/catalog/model/shipping/auspost.php

No other modifications need to be made. The following that was broken in the 1.3.4 release was fixed.

* Live shipping calculation works again now (variable renamed and not fixed)
* Estimation for shipping now displays correctly (variable renamed and not fixed)
* Additional handling now works (validation check taken out of admin module resulted in many values not working)

New additions (added as they were pending requests):
* Module will now display an error if the parcel is over 20kg
* Module now supports tax, have tested with GST sample for Australia and works as expected

Please test and provide feedback. I want this to be working so people in Australia don't suffer because of the lack of testing in the recent upgrade.
SuperJuice
 
Posts: 282
Joined: Wed Aug 12, 2009 11:06 pm

Re: Australia Post Shipping Module (v1.0)

Postby cc6264 » Wed Nov 18, 2009 7:22 pm

Thanks SuperJuice

Worked great on local test, didn't work on main server though. Came up with a bunch of gobbldeygook in the guest checkout page. My guess is the upload failed for some reason (has happened before) Will retry later.

Thanks again.
Craig
cc6264
 
Posts: 17
Joined: Thu Oct 08, 2009 8:29 pm
Location: Sydney,Australia

Re: Australia Post Shipping Module (v1.0)

Postby datacon » Wed Nov 18, 2009 7:57 pm

Thank you very much SuperJuice.

Works an absolute charm! I have uploaded on the website and works perfectly with 1.3.4. Great new additions too!

Im sure everybody really appreciates your contribution. Hopefully this fix is used and released in 1.3.5.
datacon
 
Posts: 57
Joined: Mon Nov 16, 2009 10:10 pm

Re: Australia Post Shipping Module (v1.0)

Postby SuperJuice » Thu Nov 19, 2009 6:02 am

cc6264, did you fix the problem you were having?

Thanks for the feedback, there may need to be some more work done on the Tax because I believe the rate provided by Auspost includes GST, so if you want the GST to be a discreet line item I will need to strip the GST off the returned value and then pass the tax amount in the tax variable... rather than adding GST to the returned value which is the current situation (this is minor).
SuperJuice
 
Posts: 282
Joined: Wed Aug 12, 2009 11:06 pm

Re: Australia Post Shipping Module (v1.0)

Postby cc6264 » Thu Nov 19, 2009 10:27 pm

A big thankyou to SuperJuice.

Works fine - as I suspected one of the files failed in the upload (filesize was wrong).

I would leave it as it is. Works perfectly.

Cheers
Craig
cc6264
 
Posts: 17
Joined: Thu Oct 08, 2009 8:29 pm
Location: Sydney,Australia

Re: Australia Post Shipping Module (v1.0)

Postby cmebd » Mon Nov 23, 2009 6:15 pm

SuperJuice wrote:cc6264, did you fix the problem you were having?

Thanks for the feedback, there may need to be some more work done on the Tax because I believe the rate provided by Auspost includes GST, so if you want the GST to be a discreet line item I will need to strip the GST off the returned value and then pass the tax amount in the tax variable... rather than adding GST to the returned value which is the current situation (this is minor).


Hi SuperJuice,

I would find it helpful to have GST as a discreet line itme. :-)

Cheers
Christine
User avatar
cmebd
 
Posts: 403
Joined: Thu Nov 12, 2009 10:17 pm
Location: Tasmania, Australia

Next

Return to Extensions

Who is online

Users browsing this forum: No registered users and 10 guests

Hosted by Arvixe Web Hosting