laketuna
laketuna

Reputation: 4080

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

Upvotes: 0

Views: 1253

Answers (1)

nachito
nachito

Reputation: 7035

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

Upvotes: 1

Related Questions