<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: PHP: USPS rates calculator</title>
	<link>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/</link>
	<description>The cyber-place where I live</description>
	<pubDate>Thu, 20 Nov 2008 22:14:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: stevepofd</title>
		<link>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comment-2400</link>
		<author>stevepofd</author>
		<pubDate>Thu, 06 Nov 2008 11:23:50 +0000</pubDate>
		<guid>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comment-2400</guid>
		<description>Hello,
  I saw someone ask a little while ago about updates for the new V3 system, it seems as i have been getting some strange shipping prices on my site, and i think the old version could be at fault. who knows with the usps though ;)

thanks in advance for the help!
-steve</description>
		<content:encoded><![CDATA[<p>Hello,<br />
  I saw someone ask a little while ago about updates for the new V3 system, it seems as i have been getting some strange shipping prices on my site, and i think the old version could be at fault. who knows with the usps though ;)</p>
<p>thanks in advance for the help!<br />
-steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Algirdas</title>
		<link>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comment-2328</link>
		<author>Algirdas</author>
		<pubDate>Fri, 31 Oct 2008 10:07:16 +0000</pubDate>
		<guid>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comment-2328</guid>
		<description>Hello brooksh,

with this you get the response and the list of available methods and its prices:
[code lang="php"]$price = $usps-&gt;getPrice();[/code]

so to print the method name and price you should write this:
[code lang="php"]foreach($price-&gt;list as $method)
{
   echo $method-&gt;mailservice;
   echo $method-&gt;price;
   echo "\n";
}
[/code]</description>
		<content:encoded><![CDATA[<p>Hello brooksh,</p>
<p>with this you get the response and the list of available methods and its prices:</p>
<div class="codesnip-container" >
<div class="codesnip"><span class="re0">$price</span> = <span class="re0">$usps</span>-&gt;<span class="me1">getPrice</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</div>
<p>so to print the method name and price you should write this:</p>
<div class="codesnip-container" >
<div class="codesnip"><span class="kw1">foreach</span><span class="br0">&#40;</span><span class="re0">$price</span>-&gt;<span class="me1">list</span> <span class="kw1">as</span> <span class="re0">$method</span><span class="br0">&#41;</span><br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp;<a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="re0">$method</span>-&gt;<span class="me1">mailservice</span>;<br />
&nbsp; &nbsp;<a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="re0">$method</span>-&gt;<span class="me1">price</span>;<br />
&nbsp; &nbsp;<a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&#8220;</span><span class="es0">\n</span>&#8220;;<br />
<span class="br0">&#125;</span></div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: brooksh</title>
		<link>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comment-2320</link>
		<author>brooksh</author>
		<pubDate>Thu, 30 Oct 2008 21:01:34 +0000</pubDate>
		<guid>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comment-2320</guid>
		<description>How would you display just the rate? 

I have tried 
$price = $usps-&#62;getPrice();
$total = $price-&#62;price-&#62;rate;
echo $total;

and it doesn't work.</description>
		<content:encoded><![CDATA[<p>How would you display just the rate? </p>
<p>I have tried<br />
$price = $usps-&gt;getPrice();<br />
$total = $price-&gt;price-&gt;rate;<br />
echo $total;</p>
<p>and it doesn&#8217;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comment-2151</link>
		<author>mike</author>
		<pubDate>Wed, 24 Sep 2008 10:48:36 +0000</pubDate>
		<guid>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comment-2151</guid>
		<description>Hi,
I have USPS realtime calculation API for both Domestic and International. It works fine with weight,zip code,country....But my problem is how can i use Dimension like length,height and width of product to calculate exact charges for both. I have my USPS username and password. Currently my API is working on production server. can u please give little bit code to use Dimension. Do u have any idea how to get Consignment No from USPS too..?
I need real help..? Pl help me in this issue....
waiting for your comment or reply.....</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have USPS realtime calculation API for both Domestic and International. It works fine with weight,zip code,country&#8230;.But my problem is how can i use Dimension like length,height and width of product to calculate exact charges for both. I have my USPS username and password. Currently my API is working on production server. can u please give little bit code to use Dimension. Do u have any idea how to get Consignment No from USPS too..?<br />
I need real help..? Pl help me in this issue&#8230;.<br />
waiting for your comment or reply&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mrprez</title>
		<link>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comment-1837</link>
		<author>Mrprez</author>
		<pubDate>Mon, 23 Jun 2008 13:00:52 +0000</pubDate>
		<guid>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comment-1837</guid>
		<description>Has anyone used this on php5?  How about the new V3 servers at USPS?

John</description>
		<content:encoded><![CDATA[<p>Has anyone used this on php5?  How about the new V3 servers at USPS?</p>
<p>John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: skid</title>
		<link>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comment-1671</link>
		<author>skid</author>
		<pubDate>Tue, 15 Apr 2008 16:39:43 +0000</pubDate>
		<guid>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comment-1671</guid>
		<description>Hi,

Thanks for the script. I have a problem though, the domestic rates work just fine, but the international ones don't, not on testings nor production.

This is the error I get: API Authorization failure. IntlRate is not a valid API name for this protocol.

I would really appreciate if you could help me, this is very important and urgent to me.

Hope you can give me a reply. THANKS A LOT!
Best regards</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for the script. I have a problem though, the domestic rates work just fine, but the international ones don&#8217;t, not on testings nor production.</p>
<p>This is the error I get: API Authorization failure. IntlRate is not a valid API name for this protocol.</p>
<p>I would really appreciate if you could help me, this is very important and urgent to me.</p>
<p>Hope you can give me a reply. THANKS A LOT!<br />
Best regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: atiph</title>
		<link>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comment-1649</link>
		<author>atiph</author>
		<pubDate>Fri, 04 Apr 2008 13:14:08 +0000</pubDate>
		<guid>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comment-1649</guid>
		<description>Thanks,

You mean to say that i must go to LIVE for getting desired result and as I m using it with test URL so that these problems occured??

OK i understand. Thanks for your help. Please also guide me what i have to do after i got my Production key activated??

Thanks again</description>
		<content:encoded><![CDATA[<p>Thanks,</p>
<p>You mean to say that i must go to LIVE for getting desired result and as I m using it with test URL so that these problems occured??</p>
<p>OK i understand. Thanks for your help. Please also guide me what i have to do after i got my Production key activated??</p>
<p>Thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Algirdas</title>
		<link>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comment-1648</link>
		<author>Algirdas</author>
		<pubDate>Fri, 04 Apr 2008 12:44:19 +0000</pubDate>
		<guid>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comment-1648</guid>
		<description>zip codes “20008″ and “10022″ is for testing. So if you have changed them and to other valid zip codes and your script stopped working, that could mean your USPS account is not changed to LIVE, with TEST account you can use only test zip codes and other test data.</description>
		<content:encoded><![CDATA[<p>zip codes “20008″ and “10022″ is for testing. So if you have changed them and to other valid zip codes and your script stopped working, that could mean your USPS account is not changed to LIVE, with TEST account you can use only test zip codes and other test data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: atiph</title>
		<link>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comment-1647</link>
		<author>atiph</author>
		<pubDate>Fri, 04 Apr 2008 12:40:23 +0000</pubDate>
		<guid>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comment-1647</guid>
		<description>Hi,
Discard my previous posting...Sorry for that

Algirdas, I have downloaded this class. its working fine for me but when i change orign and destination zip codes from “20008″ and “10022″ to some valid zip codes like 07481 or 11375 or someone else, it shows following error:

    [error] =&#62; error Object
        (
            [number] =&#62; -2147219490
            [source] =&#62; Rate_Respond;SOLServerRatesTest.RateV2_Respond
            [description] =&#62; Invalid value for origin ZIP Code.
            [helpcontext] =&#62; 1000440
            [helpfile] =&#62; 
        )

I just copy the files in my root folder and change userid. Any help????

Thanks</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Discard my previous posting&#8230;Sorry for that</p>
<p>Algirdas, I have downloaded this class. its working fine for me but when i change orign and destination zip codes from “20008″ and “10022″ to some valid zip codes like 07481 or 11375 or someone else, it shows following error:</p>
<p>    [error] =&gt; error Object<br />
        (<br />
            [number] =&gt; -2147219490<br />
            [source] =&gt; Rate_Respond;SOLServerRatesTest.RateV2_Respond<br />
            [description] =&gt; Invalid value for origin ZIP Code.<br />
            [helpcontext] =&gt; 1000440<br />
            [helpfile] =&gt;<br />
        )</p>
<p>I just copy the files in my root folder and change userid. Any help????</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: atiph</title>
		<link>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comment-1646</link>
		<author>atiph</author>
		<pubDate>Fri, 04 Apr 2008 12:38:07 +0000</pubDate>
		<guid>http://www.varnagiris.net/2006/05/04/php-usps-rates-calculator/#comment-1646</guid>
		<description>Hi,

Algirdas, I have downloaded this class. its working fine for me but when i change orign and destination zip codes from "20008" and "10022" to some valid zip codes like 07481 or 11375 or someone else.I just copy the files in my root folder and change password. Any help????

Thanks</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Algirdas, I have downloaded this class. its working fine for me but when i change orign and destination zip codes from &#8220;20008&#8243; and &#8220;10022&#8243; to some valid zip codes like 07481 or 11375 or someone else.I just copy the files in my root folder and change password. Any help????</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
