<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for jimcode.org</title>
	<atom:link href="http://www.jimcode.org/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jimcode.org</link>
	<description>James Rowe&#039;s Web Design, Development and Programming Blog</description>
	<lastBuildDate>Sat, 04 Feb 2012 00:25:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Web standards and why I still really don&#8217;t care by Jim</title>
		<link>http://www.jimcode.org/2012/01/web-standards-still-dont-care/#comment-904</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Sat, 04 Feb 2012 00:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jimcode.org/?p=1804#comment-904</guid>
		<description>Thanks Sam!  A change with my hosting and you are right the encoding has gone wayward.  Something to fix in the morning!

I think if you read the article carefully you will see I am actually not against standards at all, in fact I believe they are extremely important.  I just wish browser developers had followed them.  Thankfully with the coming of Firefox and then Chrome and Microsoft&#039;s response it seems things are slowly getting better.</description>
		<content:encoded><![CDATA[<p>Thanks Sam!  A change with my hosting and you are right the encoding has gone wayward.  Something to fix in the morning!</p>
<p>I think if you read the article carefully you will see I am actually not against standards at all, in fact I believe they are extremely important.  I just wish browser developers had followed them.  Thankfully with the coming of Firefox and then Chrome and Microsoft&#8217;s response it seems things are slowly getting better.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Web standards and why I still really don&#8217;t care by Sam</title>
		<link>http://www.jimcode.org/2012/01/web-standards-still-dont-care/#comment-903</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Fri, 03 Feb 2012 23:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jimcode.org/?p=1804#comment-903</guid>
		<description>Use UTF-8 encoding for your HTML, you moron. You really could do with paying some attention to standards...</description>
		<content:encoded><![CDATA[<p>Use UTF-8 encoding for your HTML, you moron. You really could do with paying some attention to standards&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Magento: Display the store telephone number by Darren Fauth</title>
		<link>http://www.jimcode.org/2011/03/magento-display-store-telephone-number/#comment-900</link>
		<dc:creator>Darren Fauth</dc:creator>
		<pubDate>Wed, 01 Feb 2012 01:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jimcode.org/?p=703#comment-900</guid>
		<description>Thanks! Short and to the point and just what I needed.</description>
		<content:encoded><![CDATA[<p>Thanks! Short and to the point and just what I needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Guernsey &amp; Jersey GST/VAT Rates in Magento by Christopher Shennan</title>
		<link>http://www.jimcode.org/2011/08/guernsey-jersey-gstvat-rates-magento/#comment-899</link>
		<dc:creator>Christopher Shennan</dc:creator>
		<pubDate>Tue, 31 Jan 2012 11:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jimcode.org/?p=1382#comment-899</guid>
		<description>Hi

Thank you very much.  This has helped us with tax rates which has been confusing us with Guernsey and Jersey for a while now.

It looks like the last 2 entries have typos which you may want to correct so we&#039;re definitely getting it right :)

Thanks you.

Chris.</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Thank you very much.  This has helped us with tax rates which has been confusing us with Guernsey and Jersey for a while now.</p>
<p>It looks like the last 2 entries have typos which you may want to correct so we&#8217;re definitely getting it right :)</p>
<p>Thanks you.</p>
<p>Chris.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on eCommerce and Magento with aheadWorks by Xce</title>
		<link>http://www.jimcode.org/2012/01/ecommerce-magento-aheadworks/#comment-898</link>
		<dc:creator>Xce</dc:creator>
		<pubDate>Mon, 16 Jan 2012 15:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jimcode.org/?p=1779#comment-898</guid>
		<description>Everyone seems to be talking about Magento...</description>
		<content:encoded><![CDATA[<p>Everyone seems to be talking about Magento&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How wordpress development helps you to become a successful blogger? by Web Design Texas</title>
		<link>http://www.jimcode.org/2012/01/how-wordpress-development-helps-you-to-become-a-successful-blogger/#comment-897</link>
		<dc:creator>Web Design Texas</dc:creator>
		<pubDate>Mon, 16 Jan 2012 08:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jimcode.org/2012/01/how-wordpress-development-helps-you-to-become-a-successful-blogger/#comment-897</guid>
		<description>This is a worthy blog! I liked reading and it is a pleasure to visit this blog. Thank you for sharing.</description>
		<content:encoded><![CDATA[<p>This is a worthy blog! I liked reading and it is a pleasure to visit this blog. Thank you for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Magento Order &amp; Product Properties by Jim Rowe</title>
		<link>http://www.jimcode.org/2010/10/magento-order-product-properties/#comment-893</link>
		<dc:creator>Jim Rowe</dc:creator>
		<pubDate>Fri, 13 Jan 2012 14:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jimcode.org/?p=518#comment-893</guid>
		<description>I have some code somewhere that does exactly that, only difference is that I run it for each order as they come in... but once you have the order object you should be able to call the same methods.

I will post an example here once I get a chance to dig up the code, but you can probably guess at the method names from the list of fields above.  I am yet to work out why some of the method names match the above fields, but not all of them :-)</description>
		<content:encoded><![CDATA[<p>I have some code somewhere that does exactly that, only difference is that I run it for each order as they come in&#8230; but once you have the order object you should be able to call the same methods.</p>
<p>I will post an example here once I get a chance to dig up the code, but you can probably guess at the method names from the list of fields above.  I am yet to work out why some of the method names match the above fields, but not all of them :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Magento Order &amp; Product Properties by Golyo</title>
		<link>http://www.jimcode.org/2010/10/magento-order-product-properties/#comment-892</link>
		<dc:creator>Golyo</dc:creator>
		<pubDate>Fri, 13 Jan 2012 13:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jimcode.org/?p=518#comment-892</guid>
		<description>Hi and thanks for your quick answer,
I would like to export a CSV file with the following parameters: orders increment id; product sku; product qty; grand total.

&lt;code&gt;
require_once &#039;app/Mage.php&#039;;
umask(0);
Mage::app();
$orders = Mage::getResourceModel(&#039;sales/order_collection&#039;)
        -&gt;addAttributeToSelect(&#039;*&#039;)
        -&gt;addFieldToFilter(&#039;status&#039;, array(&quot;in&quot; =&gt; array(
            &#039;processing&#039;,
			&#039;new&#039;)
            ))
        -&gt;addAttributeToFilter(&#039;store_id&#039;, Mage::app()-&gt;getStore()-&gt;getId())
        -&gt;addAttributeToSort(&#039;created_at&#039;, &#039;asc&#039;)
        -&gt;load();
$exportData = array();
  foreach($orders as $order):
	$OrdersLine = array ($order-&gt;getIncrementId(),$order-&gt;getGrandTotal());
	array_push($exportData, $OrdersLine); 
  endforeach;

function outputCSV($data) {
    $outstream = fopen(&quot;var/export/exportOrders.csv&quot;, &#039;w&#039;);
    function __outputCSV(&amp;$vals, $key, $filehandler) {
        fputcsv($filehandler, $vals, &#039;,&#039;, &#039;&quot;&#039;);
    }
    array_walk($data, &#039;__outputCSV&#039;, $outstream);
    fclose($outstream);
}
outputCSV($exportData);
&lt;/code&gt;

Admit, I&#039;m new in magento, and I stuck in this phase. 
How could I obtain and insert product sku and qty in the CSV file?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi and thanks for your quick answer,<br />
I would like to export a CSV file with the following parameters: orders increment id; product sku; product qty; grand total.</p>
<p><code><br />
require_once 'app/Mage.php';<br />
umask(0);<br />
Mage::app();<br />
$orders = Mage::getResourceModel('sales/order_collection')<br />
        -&gt;addAttributeToSelect('*')<br />
        -&gt;addFieldToFilter('status', array("in" =&gt; array(<br />
            'processing',<br />
			'new')<br />
            ))<br />
        -&gt;addAttributeToFilter('store_id', Mage::app()-&gt;getStore()-&gt;getId())<br />
        -&gt;addAttributeToSort('created_at', 'asc')<br />
        -&gt;load();<br />
$exportData = array();<br />
  foreach($orders as $order):<br />
	$OrdersLine = array ($order-&gt;getIncrementId(),$order-&gt;getGrandTotal());<br />
	array_push($exportData, $OrdersLine);<br />
  endforeach;</p>
<p>function outputCSV($data) {<br />
    $outstream = fopen("var/export/exportOrders.csv", 'w');<br />
    function __outputCSV(&amp;$vals, $key, $filehandler) {<br />
        fputcsv($filehandler, $vals, ',', '"');<br />
    }<br />
    array_walk($data, '__outputCSV', $outstream);<br />
    fclose($outstream);<br />
}<br />
outputCSV($exportData);<br />
</code></p>
<p>Admit, I&#8217;m new in magento, and I stuck in this phase.<br />
How could I obtain and insert product sku and qty in the CSV file?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Magento Order &amp; Product Properties by Jim Rowe</title>
		<link>http://www.jimcode.org/2010/10/magento-order-product-properties/#comment-891</link>
		<dc:creator>Jim Rowe</dc:creator>
		<pubDate>Fri, 13 Jan 2012 09:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jimcode.org/?p=518#comment-891</guid>
		<description>Hi Golyo, you must not be getting the order object properly.  Vijay&#039;s code above already assumes you have an order object on which to call getAllItems() so there is possibly a step missing in your code. 

You can find the code to load an order in this post... http://www.jimcode.org/2011/04/title-orders-payment-method-magento/

Hope that helps!</description>
		<content:encoded><![CDATA[<p>Hi Golyo, you must not be getting the order object properly.  Vijay&#8217;s code above already assumes you have an order object on which to call getAllItems() so there is possibly a step missing in your code. </p>
<p>You can find the code to load an order in this post&#8230; <a href="http://www.jimcode.org/2011/04/title-orders-payment-method-magento/" rel="nofollow">http://www.jimcode.org/2011/04/title-orders-payment-method-magento/</a></p>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Magento Order &amp; Product Properties by Jim Rowe</title>
		<link>http://www.jimcode.org/2010/10/magento-order-product-properties/#comment-890</link>
		<dc:creator>Jim Rowe</dc:creator>
		<pubDate>Fri, 13 Jan 2012 09:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jimcode.org/?p=518#comment-890</guid>
		<description>Hi Dipalia, that isn&#039;t something I have actually done but I am sure there must be some methods to load orders by date and after that worst case scenario would be o do your own filtering.  Sorry not a great deal of help.</description>
		<content:encoded><![CDATA[<p>Hi Dipalia, that isn&#8217;t something I have actually done but I am sure there must be some methods to load orders by date and after that worst case scenario would be o do your own filtering.  Sorry not a great deal of help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

