php - Magento 如何更改 Paypal 中的默认订单状态

标签 php magento paypal status

我是 Magento 世界的新手。我目前有 1.4.2,当客户使用 Paypal 下订单时,订单状态将在处理中。我需要等待。

我试图在 app/Core/code/Mage/Paypal/etc 的 config.xml 中更改默认订单状态

<sales>
        <order>
            <statuses>
                <!-- retained for backwards compatibility, not used anymore -->
                <pending translate="label"><label>Pending</label></pending>
            </statuses>
        </order>
    </sales>

编辑:http://www.magentocommerce.com/bug-tracking/issue?issue=7572这包括关于错误订单状态的错误和 Magento 1.3.2.4 的解决方案。但不适用于 1.4.2
但这没有用。 任何帮助将不胜感激

最佳答案

我找到了解决方案。 在 app/code/core/Mage/Paypal/Controller/Express/Abstract.php

下面的链接将向您展示如何随时更改订单状态。

http://blog.chapagain.com.np/magento-how-to-change-order-status-programmatically/

所以在您被重定向到成功页面之前。将订单状态更改为您需要的状态。

关于php - Magento 如何更改 Paypal 中的默认订单状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17055333/

相关文章:

php - 如何使用 PHP 生成正确的订单号?

php - 我们如何在代码中使用 Magento 中的自定义选项类型文件将产品添加到购物车?

Magento - 在 vi​​ew.phtml 中获取某个类别的项目总数

magento - 将 CSS 类名添加到自定义选项字段(如单选框)并选择

paypal - Paypal 自适应支付的 future 将是什么?

paypal - 客户未完成 Paypal 付款时的通知

php - 我可以扩展内置的 PHP 函数吗?

php - 拍摄特定数据快照的最佳方法

php - CakePHP : site not opening on webserver MIGRATION issue works fine on localhost

javascript - 在沙盒帐户中模拟 PayPal 错误