在Magento发货后订单状态未更改

时间:2016-05-25 11:29:31

标签: magento

我有几个订单,点击发货并提交保留为处理的船只后,它们不会进入“完成”状态。

我使用paypal付款方式,它生成发票和发货pdf,但状态仍在处理

我也检查了系统中的订单状态 - >订单状态, 完成[完成]状态仅指定完成。

奇怪的问题

<events>
    <sales_order_save_after>
        <observers>
            <auto_invoice_order>
                <type>singleton</type>
                <class>custom_Orderhook_Model_Observer</class>
                <method>implementOrderStatus</method>
            </auto_invoice_order>
        </observers>
    </sales_order_save_after>
</events>

我使用了&#39; sales_order_save_after&#39;事件调试订单状态,但仍然无法调试问题

public function canShip()
{
    if ($this->canUnhold() || $this->isPaymentReview()) {
        return false;
    }

    if ($this->getIsVirtual() || $this->isCanceled()) {
        return false;
    }

    if ($this->getActionFlag(self::ACTION_FLAG_SHIP) === false) {
        return false;
    }

    foreach ($this->getAllItems() as $item) {
        if ($item->getQtyToShip()>0 && !$item->getIsVirtual()
            && !$item->getLockedDoShip())
        {
            return true;
        }
    }
    return false;
}

/app/code/core/Mage/Sales/Model/Order.php

canShip()正在更新货件,但状态仍然为&#39; Processing&#39;

有谁知道这是怎么发生的,以及如何解决这个问题?

感谢

0 个答案:

没有答案
相关问题