<?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>The Magento Expert</title>
	<atom:link href="https://www.the-mage-expert.com/tag/status/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.the-mage-expert.com</link>
	<description>Your Magento Commerce Expert</description>
	<lastBuildDate>Thu, 05 Nov 2026 21:47:58 +0000</lastBuildDate>
	<language>de-DE</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8.6</generator>
	<item>
		<title>Getting a product&#8217;s status</title>
		<link>https://www.the-mage-expert.com/2409/getting-a-product-s-status/</link>
		<comments>https://www.the-mage-expert.com/2409/getting-a-product-s-status/#comments</comments>
		<pubDate>Fri, 31 Jan 2025 08:36:31 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[Magento 2]]></category>
		<category><![CDATA[product]]></category>
		<category><![CDATA[status]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=2409</guid>
		<description><![CDATA[A Magento 2 product normally has one of two statuses: enabled or disabled. Use the following code to check its status programmatically: [crayon-6af33ffb0a61d/] Fertig!]]></description>
				<content:encoded><![CDATA[<p>A Magento 2 product normally has one of two statuses: enabled or disabled. Use the following code to check its status programmatically:</p><pre class="crayon-plain-tag">// 1 = aktiviert
// 2 = deaktiviert
$status = $product-&gt;getStatus()</pre><p>Fertig!</p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/2409/getting-a-product-s-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting the status of every product in the database using MySQL</title>
		<link>https://www.the-mage-expert.com/680/magento-getting-status-of-every-product-database-using-mysql/</link>
		<comments>https://www.the-mage-expert.com/680/magento-getting-status-of-every-product-database-using-mysql/#comments</comments>
		<pubDate>Tue, 30 Sep 2014 08:30:17 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[products]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[status]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=680</guid>
		<description><![CDATA[The following MySQL query returns the status of every product in the Magento database. [crayon-6af33ffb190c9/] Status 1: active Status 2: not active]]></description>
				<content:encoded><![CDATA[<p>The following MySQL query returns the status of every product in the Magento database.</p>
<p></p><pre class="crayon-plain-tag">SELECT
  cpe.sku,
  q.product_status
FROM catalog_product_entity cpe
  JOIN (SELECT
    entity_id AS product_id,
    value AS product_status
  FROM catalog_product_entity_int
  WHERE entity_type_id = (SELECT
    entity_type_id
  FROM eav_entity_type
  WHERE entity_type_code = 'catalog_product')
  AND attribute_id = (SELECT
    attribute_id
  FROM eav_attribute
  WHERE attribute_code = 'status'
  AND entity_type_id = (SELECT
    entity_type_id
  FROM eav_entity_type
  WHERE entity_type_code = 'catalog_product'))) q
    ON cpe.entity_id = q.product_id;</pre><p></p>
<p>Status 1: active<br />
Status 2: not active</p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/680/magento-getting-status-of-every-product-database-using-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting the order state to Complete or Closed</title>
		<link>https://www.the-mage-expert.com/137/setting-the-order-state-to-complete-or-closed/</link>
		<comments>https://www.the-mage-expert.com/137/setting-the-order-state-to-complete-or-closed/#comments</comments>
		<pubDate>Mon, 25 Mar 2013 12:35:32 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[order]]></category>
		<category><![CDATA[state]]></category>
		<category><![CDATA[status]]></category>

		<guid isPermaLink="false">https://www.the-mage-expert.com/?p=137</guid>
		<description><![CDATA[Normally Magento does not permit changing an order state to COMPLETE or CLOSED directly. Instead, you receive an error message (The Order State &#8220;complete&#8221; must not be set manually). You can work around this by overriding Order.php and View.php. 1.&#8230;]]></description>
				<content:encoded><![CDATA[<p>Normally Magento does not permit changing an order state to COMPLETE or CLOSED directly. Instead, you receive an error message (The Order State &#8220;complete&#8221; must not be set manually). You can work around this by overriding Order.php and View.php.</p>
<p>1. <em>\app\code\local\Namespace\Modul\Block\Adminhtml\Sales\Order\View.php</em> and add the following lines:</p><pre class="crayon-plain-tag">public function __construct() {
        parent::__construct();
}</pre><p></p>
<p>2. <em>\app\code\local\Namespace\Modul\Model\Sales\Order.php</em> and override the setState method as follows:</p><pre class="crayon-plain-tag">public function setState($state, $status = false, $comment = '', $isCustomerNotified = null) {
        return $this-&gt;_setState($state, $status, $comment, $isCustomerNotified, false);
}</pre><p></p>
<p>3. Add the following lines to your module&#8217;s config.xml:</p>
<p></p><pre class="crayon-plain-tag">&lt;global&gt;
    &lt;models&gt;
        &lt;sales&gt;
                &lt;rewrite&gt;
                    &lt;order&gt;Namespace_Modul_Model_Sales_Order&lt;/order&gt;
                &lt;/rewrite&gt;
            &lt;/sales&gt;
    &lt;/models&gt;
&lt;/global&gt;

&lt;blocks&gt;
    &lt;adminhtml&gt;
        &lt;rewrite&gt;
            &lt;sales_order_view&gt;Namespace_Modul_Block_Adminhtml_Sales_Order_View&lt;/sales_order_view&gt;
        &lt;/rewrite&gt;
    &lt;/adminhtml&gt;
 &lt;/blocks&gt;</pre><p></p>
<p>4. You can now set the state in a controller, for example:</p>
<p></p><pre class="crayon-plain-tag">$order-&gt;setState(...)-&gt;save();</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/137/setting-the-order-state-to-complete-or-closed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
