<?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; state</title>
	<atom:link href="http://blog.adin.pro/tag/state/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 &#8211; The Order State &#8220;complete&#8221; must not be set manually.</title>
		<link>http://blog.adin.pro/2016-07-29/magento-the-order-state-complete-must-not-be-set-manually/</link>
		<comments>http://blog.adin.pro/2016-07-29/magento-the-order-state-complete-must-not-be-set-manually/#comments</comments>
		<pubDate>Fri, 29 Jul 2016 12:58:38 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[order]]></category>
		<category><![CDATA[state]]></category>
		<category><![CDATA[status]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=519</guid>
		<description><![CDATA[<p>If you want to update order status &#038; state programmaticaly, you try this And you get this error : To fix it, use this :</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2016-07-29/magento-the-order-state-complete-must-not-be-set-manually/">Magento &#8211; The Order State &#8220;complete&#8221; must not be set manually.</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>If you want to update order status &#038; state programmaticaly, you try this </p>
<pre class="brush: php; title: ; notranslate">
$order-&gt;setStatus(Mage_Sales_Model_Order::STATE_COMPLETE);
$order-&gt;setState(Mage_Sales_Model_Order::STATE_COMPLETE);
</pre>
<p>And you get this error :</p>
<pre class="brush: bash; title: ; notranslate">
The Order state 'complete' must not be set manually.
</pre>
<p>To fix it, use this :</p>
<pre class="brush: php; title: ; notranslate">
$order-&gt;addStatusToHistory(Mage_Sales_Model_Order::STATE_COMPLETE, &quot;Comments&quot;);
$order-&gt;setData('state', Mage_Sales_Model_Order::STATE_COMPLETE);
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2016-07-29/magento-the-order-state-complete-must-not-be-set-manually/">Magento &#8211; The Order State &#8220;complete&#8221; must not be set manually.</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/2016-07-29/magento-the-order-state-complete-must-not-be-set-manually/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
