<?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>Agence de Développement Informatique du Nord &#187; order history</title>
	<atom:link href="http://blog.adin.pro/tag/order-history/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.adin.pro</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Thu, 26 Dec 2019 08:54:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>Magento add order history</title>
		<link>http://blog.adin.pro/2018-01-18/magento-add-order-history/</link>
		<comments>http://blog.adin.pro/2018-01-18/magento-add-order-history/#comments</comments>
		<pubDate>Thu, 18 Jan 2018 08:43:05 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[order history]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=547</guid>
		<description><![CDATA[<p>There is several ways to add order history, with less or more data Quick way : With all informations :</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2018-01-18/magento-add-order-history/">Magento add order history</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>There is several ways to add order history, with less or more data</p>
<p>Quick way :</p>
<pre class="brush: php; title: ; notranslate">
 $message = 'Comment to add in order history';
 $order-&gt;addStatusHistoryComment($message);
 $order-&gt;save();
</pre>
<p>With all informations :</p>
<pre class="brush: php; title: ; notranslate">
$history = Mage::getModel('sales/order_status_history')
  -&gt;setStatus($order-&gt;getStatus())
  -&gt;setComment('Comment to add in order history')
  -&gt;setEntityName(Mage_Sales_Model_Order::HISTORY_ENTITY_NAME)
  -&gt;setIsCustomerNotified(false)
  -&gt;setCreatedAt(date('Y-m-d H:i:s', time()));

  $order-&gt;addStatusHistory($history);
  $order-&gt;save();
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2018-01-18/magento-add-order-history/">Magento add order history</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2018-01-18/magento-add-order-history/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
