logo
  • 教程列表
  • SO官方文檔
  • 命令
    • 按 ID 獲取訂單
    • 按增量 ID 獲取訂單
    • 新增評論到訂單歷史記錄
  1. StackOverflow 文件
  2. magento 教程
  3. 命令
  4. 按 ID 獲取訂單

按 ID 獲取訂單

Created: November-22, 2018

$orderid = 12345;
$order = Mage::getModel('sales/order')->load($orderid);

上面的程式碼大致類似於以下 SQL 查詢。

select * from sales_flat_order where entity_id=12345;
  • 按增量 ID 獲取訂單
  • 命令

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明