{"id":1072,"date":"2011-01-17T22:55:09","date_gmt":"2011-01-17T14:55:09","guid":{"rendered":"http:\/\/blog.lolyco.com\/sean\/?p=1072"},"modified":"2013-05-24T05:31:07","modified_gmt":"2013-05-23T21:31:07","slug":"oscommerce-shipping-module-for-spider-my-pos-malaysia-rates-pre-release","status":"publish","type":"post","link":"https:\/\/blog.lolyco.com\/sean\/2011\/01\/17\/oscommerce-shipping-module-for-spider-my-pos-malaysia-rates-pre-release\/","title":{"rendered":"osCommerce shipping module for spider.my (Pos Malaysia rates) pre-release"},"content":{"rendered":"<p><strong>The shipping quote API and shipping modules for osCommerce and Zen Cart is now at <a href=\"http:\/\/www.shipping-quote.net\/home.html\">Shipping-Quote.net<\/a><\/strong><\/p>\n<p>If you&#8217;ve been caught out by Pos Malaysia&#8217;s recent site updates and now can&#8217;t quote for international deliveries from your shop, this module is functional at one Malaysian online shop. Pos Malaysia&#8217;s update has come while I&#8217;ve been re-vamping the shipping quotation back-end and so I only have Pos Malaysia Air Parcel and Surface Parcel rates online as of 17th Jan 2011.<\/p>\n<div id=\"attachment_1076\" style=\"width: 254px\" class=\"wp-caption alignright\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1076\" class=\"size-full wp-image-1076\" title=\"Spider.my shipping module admin\" src=\"http:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2011\/01\/shipping.module.admin_.jpeg\" alt=\"Spider.my shipping module admin\" width=\"244\" height=\"501\" srcset=\"https:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2011\/01\/shipping.module.admin_.jpeg 244w, https:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2011\/01\/shipping.module.admin_-146x300.jpg 146w\" sizes=\"auto, (max-width: 244px) 100vw, 244px\" \/><p id=\"caption-attachment-1076\" class=\"wp-caption-text\">Spider.my shipping module admin<\/p><\/div>\n<p>You can <a href=\"http:\/\/spider.my\/static\/contrib\/oscommerce_myspider.zip\">download the new osCommerce shipping module from spider.my<\/a>. It is only hours old, so may well have some &#8216;quirks&#8217;. It&#8217;s a significant improvement over no shipping calculations at all, so give it a spin and I&#8217;ll do my best to attend quickly to any problems you find in the module.<\/p>\n<p>The config is all fairly obvious. It&#8217;ll only quote at the moment (until I rip some more rates) for &#8216;Pos Air Parcel&#8217; and &#8216;Pos Surface Parcel&#8217; for overseas destinations. You probably don&#8217;t want Pos Surface Parcel (it has very long delivery times, but it is cheap), so in the &#8216;Postal Methods&#8217; field in admin section for shipping module, enter &#8216;Pos Air Parcel&#8217;, and you&#8217;ll only get Pos Air Parcel quotes from spider.my.<\/p>\n<p>There are a couple of obvious candidates for system-wide setttings, but some doubt over the standardisation of osCommerce settings convinced me it would be safer to add them to the module settings. <strong>Weight units<\/strong> &#8211; I don&#8217;t recall seeing an osCommerce setting for this, so specify it here. Spider.my will quote for several different units, including kg, g (or gm) lb, oz etc.<\/p>\n<p><strong>&#8216;Ship from&#8217; location<\/strong> &#8211; the spider.my quotation API relies on valid <a href=\"http:\/\/en.wikipedia.org\/wiki\/ISO_3166-1\">ISO 3166-1 country<\/a> and <a href=\"http:\/\/en.wikipedia.org\/wiki\/ISO_3166-2\">ISO 3166-2 subdivision<\/a> location codes. <a href=\"http:\/\/en.wikipedia.org\/wiki\/States_and_federal_territories_of_Malaysia\">Here&#8217;s the ISO 3166-2 list for Malaysia (MY)<\/a>.<\/p>\n<p><strong>Handling Fee<\/strong> is handy if you want to add a fixed fee for packaging, standing in the queue at Pos Malaysia&#8217;s counter etc. It may need some refining, as the same fee may not be appropriate for shipping by Pos Laju when they come to your house to pickup, but is appropriate to cover the effort of driving to your local office and waiting in the queue.<\/p>\n<p><strong>Postal Methods<\/strong> can be used to restrict which methods are quoted. For example as I write this there are only 2 full sets of international rates online: Pos Surface Parcel and Pos Air Parcel. If you don&#8217;t want to quote Pos Surface Parcel (it&#8217;s very cheap, but very slow), you can enter &#8216;Pos Air Parcel&#8217; (as shown in the image) and only Pos Air Parcel quotes will be shown.<\/p>\n<p><span style=\"color: #ff0000;\">Update 18th Jan 2011, 2am MYT: I haven&#8217;t been updating the version from 0 of the shipping module while I&#8217;ve been hacking from the back-end to the front to get it quoting for local (ISO 3166-2) shipments. The version last modified at 01:54am is the first one which works reliably for both local (in-Malaysia) shipping and international.<\/span><\/p>\n<p>There are some non-trivial changes to your osCommerce database (a new column on the zones table) needed to support local deliveries, I&#8217;ll write an article about that tomorrow. Today&#8230; but later when I wake up.<\/p>\n<p>It&#8217;s tomorrow now and that first version has a fatal bug if it&#8217;s used without the table changes. I&#8217;ve updated the zipfile to a v0.1 with a workaround for an un-modified table. Just delete the region code (the &#8216;MY-05&#8217; in the image above) from the admin page, and the module won&#8217;t attempt to fetch data from a column that doesn&#8217;t exist.<\/p>\n<p><span style=\"color: #ff0000;\">Update<\/span> &#8211; hopefully the last for a while: squashed a few bugs with multi-method quotes. The shipping module myspider v0.2 is available for osCommerce as <a href=\"http:\/\/spider.my\/static\/contrib\/oscommerce_myspider.zip\">oscommerce_myspider.zip<\/a> and as v0.1 for Zen Cart as <a href=\"http:\/\/spider.my\/static\/contrib\/zencart_myspider.zip\">zencart_myspider.zip<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The shipping quote API and shipping modules for osCommerce and Zen Cart is now at Shipping-Quote.net If you&#8217;ve been caught out by Pos Malaysia&#8217;s recent site updates and now can&#8217;t quote for international deliveries from your shop, this module is functional at one Malaysian online shop. Pos Malaysia&#8217;s update has come while I&#8217;ve been re-vamping [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60,3,35,64],"tags":[21,19,8,63,111],"class_list":["post-1072","post","type-post","status-publish","format-standard","hentry","category-money","category-software","category-spidermy","category-useful","tag-e-commerce","tag-malaysia","tag-oscommerce","tag-pos-malaysia","tag-spidermy"],"_links":{"self":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/1072","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/comments?post=1072"}],"version-history":[{"count":12,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/1072\/revisions"}],"predecessor-version":[{"id":1545,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/1072\/revisions\/1545"}],"wp:attachment":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/media?parent=1072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/categories?post=1072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/tags?post=1072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}