phpmagentopdf-generationgomage

Printing customer order notes on invoice PDF


I'm having difficulty retrieving the customer order notes on an order. For example in Mage/Sales/Model/Order/Pdf/Abstract.php, there is a piece of code that works with a Sales/Order model. i.e.

($order instanceof Mage_Sales_Model_Order) is true in the PDF example

or

$order = Mage::getModel('sales/order')->load($orderID); in another example

During our checkout process, the customer is able to put in a comment for the order, but I don't know how to retrieve this. Does does anyone how to pull this? I'm looking for somewhere along the line of.. $order->getOrderComments().

Edition: Magento Entreprise 1.11.2.0

Extension in use that allows order comment: GoMage LightCheckout 3.2


Solution

  • It looks like the GoMage LightCheckout module extends Mage_Sales_Model_Order with a method getGomageCheckoutCustomerComment() which should give you want you want.

    Source: http://wiki.gomage.com/pages/viewpage.action?pageId=590188