如何在 OpenCart 2.3 管理中查看未处理的订单

How do I view unprocessed orders in OpenCart 2.3 administration

OpenCart(版本 2.3)管理中的销售 > 订单显示带有状态的订单,例如完成,失败。我还需要查看已签出但根本未处理的订单。这些是 order_status_id 等于 0?

的订单

是否有任何设置可供我选择查看未处理的订单?

我创建了一个免费的 vQmod 脚本来显示未完成的订单: Unsuccessful orders

<modification>

    <id>Unsuccessfull Orders</id>

    <version>1.0</version>

    <vqmver>2.x</vqmver>

    <author>darbaze.com</author>



    <file name="admin/model/sale/order.php">

        <operation>

            <search position="replace"><![CDATA[$sql .= " WHERE o.order_status_id > '0'";]]></search>

            <add><![CDATA[$sql .= " WHERE o.order_status_id >= '0'";]]></add>

        </operation>

    </file>



    <file name="admin/view/template/dashboard/recent.tpl">

        <operation>

            <search position="replace" offset="1"><![CDATA[<?php foreach ($orders as $order) { ?>]]></search>

            <add><![CDATA[<?php foreach ($orders as $order) { ?>

            <tr class="<?php if($order['status']){ echo 'successfull'; } else { echo 'unsuccessfull'; } ?>">]]></add>

        </operation>

        <operation>

            <search position="replace"><![CDATA[<td><?php echo $order['status']; ?></td>]]></search>

            <add><![CDATA[<td><?php if($order['status']){ echo $order['status']; } else { echo '---'; } ?></td>]]></add>

        </operation>

    </file>

    <file name="admin/view/template/sale/order_list.tpl">

        <operation>

            <search position="replace" offset="1"><![CDATA[<?php foreach ($orders as $order) { ?>]]></search>

            <add><![CDATA[<?php foreach ($orders as $order) { ?>

            <tr class="<?php if($order['status']){ echo 'successfull'; } else { echo 'unsuccessfull'; } ?>">]]></add>

        </operation>

        <operation>

            <search position="replace"><![CDATA[<td class="text-left"><?php echo $order['status']; ?></td>]]></search>

            <add><![CDATA[<td class="text-left"><?php if($order['status']){ echo $order['status']; } else { echo '---'; } ?></td>]]></add>

        </operation>

    </file>



    <file name="admin/view/template/common/header.tpl">

        <operation>

            <search position="before"><![CDATA[<?php foreach ($styles as $style) { ?>]]></search>

            <add><![CDATA[<style>.successfull td{color:green;font-weight:bold} .unsuccessfull td{color:red}</style>]]></add>

        </operation>

    </file>



</modification>