Magento 2 中的订单状态

Magento 2 中的订单状态

订单状态表为 salesorderstatus,salesorderstatus_state status和state不一样,order state经常跟order status搞混淆,我们后台编辑的基本上都是status,没法编辑修改state。

order state是magento内部处理的逻辑,是订单在当前处理流程中的位置,程序自动识别的,

一个order state可以有一个或者多个order status状态。

比如Pending Payment这个state可以有以下几个status

  • Pending Payment Paypal
  • Pending Payment Card
  • Pending Payment Store Credit

可以自己在后台给status指定分配state

参考

常用的几种status

  • Canceled(已取消):如果订单被取消或订单尚未付款,则应使用已取消的订单。这是在管理员中手动分配的。
  • Closed(已关闭):已关闭意味着订单被分配了一个贷项凭证,并且客户的订单已被退款。
  • Complete(完成):标记为已完成的订单表示订单已创建、付款并运送给客户。
  • Suspected Fraud(疑似欺诈): Magento 订单是通过 PayPal 或任何其他支付网关支付的,他们将订单标记为疑似欺诈。这意味着订单没有开具发票,也没有发送确认电子邮件。
  • On Hold(暂停):您可以暂停订单。这意味着搁置的订单必须在继续任何进一步操作之前取消。
  • Payment Review(付款审核):开启 PayPal 付款审核后,会出现此状态。
  • PayPal Canceled Reversal(PayPal 取消撤销):这表示 PayPal 取消了撤销。
  • PPayPal Reversed(ayPal撤销):这意味着 PayPal 撤销了交易。
  • Pending(待处理):此状态表示尚未提交任何发票和发货。
  • Pending Payment(待付款):这意味着客户已被定向到支付网关网站,但尚未收到任何退货信息。当客户付款时,它将被更改。
  • Pending PayPal(Pending PayPal):此 Pending PayPal 状态表示 PayPal 已收到订单,但尚未处理付款。
  • Processing(处理中):此状态表示订单已开具发票或已发货,但未同时开具发票或发货。

Magento 2 Predefined Order Status and Status codes.

ORDER STATUS Status Code State Code
Processing processing processing
Suspected Fraud fraud processing
Pending Payment pending_payment pending_payment
Payment Review payment_review payment_review
Pending pending new
On Hold holded holded
Complete complete complete
Closed closed closed
Canceled canceled canceled
PayPal Canceled Reversal paypaycanceledreversal paypaycanceledreversal
Pending PayPal pending_paypal pending_paypal
PayPal Reversed paypal_reversed paypal_reversed

Tags