簡體   English   中英

在Magento中如何顯示發票編號?

[英]In Magento how to show invoice no.?

我想顯示發票編號。 在頁面中,插入發票編號的代碼是什么。 針對特定訂單並顯示特定發票編號。 有任何顯示方式。

$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);
}

我認為這可能對您有幫助

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM