{"id":216,"date":"2009-02-25T01:46:05","date_gmt":"2009-02-24T17:46:05","guid":{"rendered":"http:\/\/blog.lolyco.com\/sean\/?p=216"},"modified":"2009-03-16T14:53:49","modified_gmt":"2009-03-16T06:53:49","slug":"pos-laju-fuel-surcharge-breaking-business-automation-again","status":"publish","type":"post","link":"https:\/\/blog.lolyco.com\/sean\/2009\/02\/25\/pos-laju-fuel-surcharge-breaking-business-automation-again\/","title":{"rendered":"Pos Laju fuel surcharge &#8211; breaking business automation AGAIN!"},"content":{"rendered":"<p>Remember last time I complained about <a title=\"Pos Laju URL change silliness\" href=\"http:\/\/blog.lolyco.com\/sean\/2008\/08\/24\/oscommerce-shipping-modules-pos-laju-pos-malaysia-air-parcel\/\">Pos Malaysia making useless, business-breaking changes to their shipping quotation system<\/a>? They&#8217;ve done it again! <a title=\"Lolyco.com online shopping\" href=\"http:\/\/lolyco.com\/\">Lolyco.com<\/a> depends on <a title=\"Pos Malaysia shipping quotes\" href=\"http:\/\/www.pos.com.my\/V1\/main2.asp?c=\/v1\/PostageRates\/PostageMain.htm\">shipping quotations from Pos Malaysia&#8217;s website<\/a> to automate its checkout. I wrote an <a title=\"osCommerce eCommerce software\" href=\"http:\/\/www.oscommerce.org\/\">osCommerce<\/a> shipping module that just sends the weight and destination of an order to Pos&#8217; website, and extracts the shipping price from the page returned. Last time, they changed the URL of their quotation system, but not the quotation system.<\/p>\n<div id=\"attachment_217\" style=\"width: 310px\" class=\"wp-caption alignright\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-217\" class=\"size-medium wp-image-217\" title=\"Pos Laju Fuel Surcharge\" src=\"http:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2009\/02\/poslajufuelsurcharge-300x199.jpg\" alt=\"Pos Laju Fuel Surcharge\" width=\"300\" height=\"199\" srcset=\"https:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2009\/02\/poslajufuelsurcharge-300x199.jpg 300w, https:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2009\/02\/poslajufuelsurcharge.jpeg 422w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><p id=\"caption-attachment-217\" class=\"wp-caption-text\">Pos Laju Fuel Surcharge<\/p><\/div>\n<p>That&#8217;s a pretty trivial error for an IT department to make\u00a0 &#8211; the effect on any users of the shipping module was that it stopped providing quotes. For an online business, a failure to provide a shipping quote means the checkout is broken &#8211; business will be lost. This time they&#8217;ve added a comment about a surcharge to the shipping quote page, <strong>but not added it into the quote<\/strong>!<\/p>\n<p>There&#8217;s no way a program could be expected to look for casual comments about surcharges. I found out about it when Christopher Yeap (thanks Chris!) made a comment on an <a title=\"Lolyco.com's open source contributions news article\" href=\"http:\/\/lolyco.com\/news.php?article=18\">old news item at lolyco.com<\/a>. The effect of Pos&#8217; failure to update their quotation system is that the shipping module will be <strong>undercharging<\/strong> for shipments. There&#8217;s no really good way to deal with what Pos have done &#8211; it&#8217;s tantamount to sabotage. I&#8217;ve added a &#8216;Random surcharge%&#8217; field to the <a title=\"Lolyco.com contributions page\" href=\"http:\/\/www.lolyco.com\/contributions\/\">v0.09 version of the shipping module<\/a> as a workaround. If anybody can think of a better idea, I&#8217;m all ears.<\/p>\n<div id=\"attachment_218\" style=\"width: 285px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-218\" class=\"size-full wp-image-218\" title=\"osCommerce Admin panel showing 'Random surcharge' field\" src=\"http:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2009\/02\/poslajurandomsurcharge.jpeg\" alt=\"osCommerce Admin panel showing 'Random surcharge' field\" width=\"275\" height=\"144\" \/><p id=\"caption-attachment-218\" class=\"wp-caption-text\">osCommerce Admin panel showing &#39;Random surcharge&#39; field<\/p><\/div>\n<p>It was my son&#8217;s birthday today, and he threw curry chicken all over the floor. It was a mess, and took a long time to clean up. But that&#8217;s okay. He&#8217;s only one year old. What&#8217;s Pos Malaysia&#8217;s excuse?<\/p>\n<p><span style=\"color: #ff0000;\">Update 16th March<\/span><\/p>\n<p>Thanks to Chris Yeap once again, I realise I didn&#8217;t&#8230; actually&#8230; update&#8230; the&#8230; online&#8230; contributions&#8230; page&#8230; only&#8230; my&#8230; local&#8230; copy&#8230; Apologies to anyone who downloaded the old version and wondered where the new Random surcharge% field was. I&#8217;m an idiot. It&#8217;s there now!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Remember last time I complained about Pos Malaysia making useless, business-breaking changes to their shipping quotation system? They&#8217;ve done it again! Lolyco.com depends on shipping quotations from Pos Malaysia&#8217;s website to automate its checkout. I wrote an osCommerce shipping module that just sends the weight and destination of an order to Pos&#8217; website, and extracts [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,3],"tags":[107,13,19,8],"class_list":["post-216","post","type-post","status-publish","format-standard","hentry","category-broken","category-software","tag-broken","tag-down","tag-malaysia","tag-oscommerce"],"_links":{"self":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/216","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=216"}],"version-history":[{"count":3,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/216\/revisions"}],"predecessor-version":[{"id":258,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/216\/revisions\/258"}],"wp:attachment":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/media?parent=216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/categories?post=216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/tags?post=216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}