osCommerce shipping modules: Pos Laju, Pos Malaysia Air Parcel

August 24th, 2008 | by Sean |

osCommerce

Just updated these two shipping modules to fix a problem introduced by Pos Malaysia - a change of URL for the postage rates calculator. No change to the calculator, just to the URL. If you’re Pos Malaysia’s web programmer (or you know Pos Malaysia’s web programmer) can you do me a favour and (ask them to) consider the effect of changes on clients? Thanks. That would be lovely.

Download shipping module poslaju v0.08

Download shipping module posmyair v0.09

If you’re using older versions of these modules - they are now broken, and you’ll have to replace them with these updated ones. I occasionally consider providing a more reliable back end for the Pos Malaysia shipping modules - maybe pos.lolyco.com, but I’d want to charge for doing that. But think about it - you’d get something reliable, without arbitrary business-breaking changes, and with responses from a real person, that would make sense. It wouldn’t cost much, maybe just RM20 a year or something. It wouldn’t cost me much either. And then I could offer a shipping module that I don’t have to fix every few months because somebody makes random useless changes to the backend. I could even easily make it faster and more reliable than Pos Malaysia’s version! It could be so good.

Enough ranting, enjoy the new modules!


Share and Enjoy:
  • Digg
  • del.icio.us
  • Fark
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • E-mail this story to a friend!
  • Facebook
  • Furl
  • Mixx
  • Print this article!
  • Sphinn
  1. 8 Responses to “osCommerce shipping modules: Pos Laju, Pos Malaysia Air Parcel”

  2. By ApOgEE on Aug 25, 2008 | Reply

    hi Sean, nice blog!

  3. By Raymond on Oct 22, 2008 | Reply

    Hi Sean…

    I would like to thank you for your wonderful OSC contribution…
    however i experience problem using this contrib with a template monster OSC 2.2 MS2
    any idea how to fix this?

  4. By Sean on Oct 22, 2008 | Reply

    @Raymond:
    You’ll have to be more specific!
    You could try a page I wrote at lolyco.com about the contributions or a news thread with some problems discussed.

  5. By ixiel on Nov 6, 2008 | Reply

    Hi Sean,

    I replaced the modules today (6/11/2008) and now my site no longer working as usual. It can’t fetch the data from pos malaysia site.

    How to debug ya?.. It looks like the poslaju url in the files is correct when i try to manually key in the URL in the browser with the ?negara= etc.. i didnt change anything, just upload and replace..

    confused.

  6. By Sean on Nov 6, 2008 | Reply

    I just tried an order at your site, and got the “Unable to obtain…” quote response. The modules you downloaded are identical to those in use at Lolyco.com, and they’re working fine there. The modules do print some helpful messages to your site’s error log. If you can read your error log, that may tell you what is going wrong. Alternatively (and it’s not ideal for a production site) you can edit includes/modules/shipping/posmyair.php and remove the ‘@’ signs from the front of the network functions. If the problem is with them, you may see error messages printed to your checkout page.
    Did you try the ‘PHPv4/v5′ option in the admin panel? cURL tells me your host is PHP v5.2.6, so you should be okay with default settings.

  7. By ixiel on Nov 6, 2008 | Reply

    Hi Sean,

    Thanx for the fast reply. :) Here the error msg i get after removing the @ sign:

    Warning: fopen(http://www.pos.com.my/V1/main2.asp?c=/v1/tariff/parcel/parcelRatedb1.asp&negara=Italy&berat=0.66) [function.fopen]: failed to open stream: Connection timed out in /home/batikcraft/domains/batikcraftcollection.com/public_html/includes/modules/shipping/posmyair.php on line 159

    and at the server logs:

    [Thu Nov 06 06:48:10 2008] [error] [client 203.92.154.36] poslaju.php failed to get http://www.pos.com.my/V1/main2.asp?c=/v1/tariff/poslaju/EmsRatedb1.asp&negara=Indonesia&berat=0.22 (file_get_contents returned false), referer: http://www.batikcraftcollection.com/checkout_shipping_address.php

    But if i copy paste the url at the browser, the poslaju site open properly. Can you help me what to do? Thanx.

  8. By Sean on Nov 6, 2008 | Reply

    Your host is on TM’s network, http://www.pos.com.my is on Time Telekom - loading a webpage should be very fast. I think you should ask your host for a solution - it could be they have a badly configured nameserver or router.

    I’m interested to know how you get on. A network timeout is an awkward problem - by the time you could trap it in the module, your customer is already annoyed by the long delay.

  9. By ixiel on Nov 10, 2008 | Reply

    I noticed my hosting company disable the php ‘allow_url_fopen’ function. So after they enable it, everything works fine..

    thank you

Post a Comment