<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>My Daily Computer Solutions &#187; tpg</title>
	<atom:link href="http://www.dailycomputersolutions.com/blog/index.php/iphone,problems,jobvermeulen,blog,daily,solutions/tpg/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailycomputersolutions.com/blog</link>
	<description>All day computer problems with solutions and advice.</description>
	<lastBuildDate>Tue, 20 Dec 2011 13:41:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>TNT zone shipping module in Joomla Virtuemart</title>
		<link>http://www.dailycomputersolutions.com/blog/index.php/2008/11/14/tnt-zone-shipping-module-in-joomla-virtuemart/</link>
		<comments>http://www.dailycomputersolutions.com/blog/index.php/2008/11/14/tnt-zone-shipping-module-in-joomla-virtuemart/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 13:54:33 +0000</pubDate>
		<dc:creator>Job Vermeulen (admin)</dc:creator>
				<category><![CDATA[At the office]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Webshop]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[shipping]]></category>
		<category><![CDATA[shipping module]]></category>
		<category><![CDATA[tnt]]></category>
		<category><![CDATA[tnt shipping]]></category>
		<category><![CDATA[tnt verzendmodule]]></category>
		<category><![CDATA[tpg]]></category>
		<category><![CDATA[Virtuemart]]></category>
		<category><![CDATA[volume weight]]></category>
		<category><![CDATA[weight shipping]]></category>
		<category><![CDATA[zone shipping]]></category>

		<guid isPermaLink="false">http://www.dailycomputersolutions.com/blog/?p=131</guid>
		<description><![CDATA[After lots and lots of googling i couldn&#8217;t find any shipping module for Virtuemart that was suiteble for our situation. There is some kind of module for TNT but its for TGP Post and I didn&#8217;t get it working. So &#8230; <a href="http://www.dailycomputersolutions.com/blog/index.php/2008/11/14/tnt-zone-shipping-module-in-joomla-virtuemart/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After lots and lots of googling i couldn&#8217;t find any shipping module for Virtuemart that was suiteble for our situation.</p>
<p>There is some kind of module for TNT but its for TGP Post and I didn&#8217;t get it working.</p>
<p>So there is no other option then write a module myself.</p>
<p>The first steps:</p>
<p><strong>(1)</strong> Shipping Zone importing</p>
<p>I&#8217;ve imported all country zone codes by downloading the <a href="http://www.tnteasyexpress.nl/pdf/Zonering.pdf">zone PDF</a> from TNT, copied the in Excel and wrote a PERL script for the importing.</p>
<p>To make it more simple to you just download the <a href="http://dailycomputersolutions.com/blog/downloads/jos_vm_country.txt">SQL file</a> here and just run the code in phpmyadmin.</p>
<p>It will update zone information (zone_id) for all countries in the jos_vm_country table.</p>
<p>If you prefer just international country codes with shipping zone information <a href="http://dailycomputersolutions.com/blog/downloads/country_zone_codes.txt">find it here.</a> (same data, other format)</p>
<p><em>Beware this zone data is only from the Dutch point of view <img src='http://www.dailycomputersolutions.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  This will be different for your country!</em></p>
<p><strong>(2) </strong>Writing the module itself:</p>
<p>The problem is, there is a default Zone Shipping module in Virtuemart, but here in the Netherlands the shipping costs are calculated different.</p>
<p>For example, in the default module you can ship a product sized 30cm * 30cm * 30cm with the weight of 50 Kg for just the zone price. There&#8217;s no difference in shipping a very large/small/heavy package. Only the destination matters.</p>
<p>TNT caculates the weight and the volume weight. You pay the highest value.</p>
<p>Weight is just the weight in Kilogram.</p>
<p>Volume weight is the size of the package length*width*hight / 6000.</p>
<p>Source: http://members.ziggo.nl/mfleur/maten.html</p>
<p>I&#8217;m writing the PHP code for the shipping module at the moment, so hold on a week or two.</p>
<p><strong>Update 19 november 2008:</strong></p>
<p>I had success with writing the module. There is a working alpha version. My deadline is 31 december 2008, so working hard to make this happen. I will make it more configurable, some parameters are hardcoded at the moment.</p>
<p><strong>Update 9 january 2009</strong>:</p>
<p>I can report the shipping module is working fine <img src='http://www.dailycomputersolutions.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  It still has the be tested some more, but it working.<br />
There is one practical problem I&#8221;m facing, the volume weight calculation.</p>
<p>When you have some products, you can calulate their volume. But not in witch box they will fit.</p>
<p>At the moment i&#8217;m tweaking this calculation for the most optimal box.</p>
<p>If someone has a good solution for this, please write a comment below <img src='http://www.dailycomputersolutions.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><strong>Update 14 Juni</strong></p>
<p>Thanks all for waiting! <img src='http://www.dailycomputersolutions.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  I can report this module is working fine in production now. At the moment i&#8217;m VERY busy with school (tomorrow I&#8217;ll have my final exam!).</p>
<p>Within a short time I&#8217;ll set the code online for testing. Anyone interested in this testing?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dailycomputersolutions.com/blog/index.php/2008/11/14/tnt-zone-shipping-module-in-joomla-virtuemart/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
	</channel>
</rss>

