【问题标题】:In Magento how to show invoice no.?在 Magento 中如何显示发票编号?
【发布时间】:2015-12-20 18:38:04
【问题描述】:

我想显示发票编号。在页面中插入发票编号的代码是什么。对于特定订单并显示特定发票编号。有什么办法可以展示。

【问题讨论】:

    标签: php magento invoice


    【解决方案1】:
    $order = Mage::getModel('sales/order')->load($orderid);
    if ($order->hasInvoices()) { // check if order has invoice
        foreach ($order->getInvoiceCollection() as $inv) {
            $invIncrementIDs[] = $inv->getIncrementId();
        //other invoice details...
        } 
      print_r($invIncrementIDs);
    }
    

    我想这可能对你有帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-08-11
      • 1970-01-01
      • 2023-03-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-16
      相关资源
      最近更新 更多