Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Where does the order-level gift message print out? 
 
Shpigford
Sr. Member
 
Avatar
Total Posts:  171
Joined:  2007-09-03
Denver, CO
 

We’ve enabled the option for customers to input a gift message for their order but I haven’t figured out where that message would print out at.

So, where can I print out the gift message users input?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Shpigford
Sr. Member
 
Avatar
Total Posts:  171
Joined:  2007-09-03
Denver, CO
 

Anybody have an idea about this?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Shpigford
Sr. Member
 
Avatar
Total Posts:  171
Joined:  2007-09-03
Denver, CO
 

Does anyone know where gift messages print out? Or if they even print out at all?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Shpigford
Sr. Member
 
Avatar
Total Posts:  171
Joined:  2007-09-03
Denver, CO
 

Someone, anyone? This seems like it should be a simple answer as it is a regular feature of Magento.

 
Magento Community Magento Community
Magento Community
Magento Community
 
andreladocruz
Guru
 
Total Posts:  322
Joined:  2008-05-07
Brazil
 

ther is no way to print out the gift message.

I have the same problem here.

we have more than 40 confirmed orders per day and have to check each one before packing it.

ther is no full order print out. It should help a lot!

regards,

 
Magento Community Magento Community
Magento Community
Magento Community
 
got-bonsai
Sr. Member
 
Avatar
Total Posts:  136
Joined:  2008-10-25
Wales, UK
 

I managed to get this working using Sebastian Enzinger’s code as a base.  This is working in the pdf invoice.  Maybe it needs changing to work in the packing slip.

Edit app\code\core\Mage\Sales\Model\Order\Pdf\invoice.php ----- replicate the folder / file structure in your app\code\local folders to stop your changes being overwritten by updates.

Insert the following code just near the bottom (before $this->_afterGetPdf();)

$message Mage::getModel('giftmessage/message');
        
        
$gift_message_id $invoice->getOrder()->getGiftMessageId();
        if(!
is_null($gift_message_id)) {
              $message
->load((int)$gift_message_id);
              
$gift_sender $message->getData('sender');
              
$gift_recipient $message->getData('recipient');
              
$gift_message $message->getData('message');
              
$page->drawText(Mage::helper('sales')->__('Message from:'), 35$this->y'UTF-8');
             
$page->drawText(Mage::helper('sales')->__($gift_sender), 120$this->y'UTF-8');
              
$this->-=10;
              
$page->drawText(Mage::helper('sales')->__('Message to:'), 35$this->y'UTF-8');
              
$page->drawText(Mage::helper('sales')->__($gift_recipient), 120$this->y'UTF-8');
              
$this->-=20;
              
$page->drawText(Mage::helper('sales')->__('Message:'), 35$this->y'UTF-8');
              
$page->drawText(Mage::helper('sales')->__($gift_message), 120$this->y'UTF-8');
          
}

This will make the message appear at the bottom of the invoice pdf.  Maybe you will need to change formatting / text.

 
Magento Community Magento Community
Magento Community
Magento Community
 
oshipper
Member
 
Total Posts:  53
Joined:  2008-02-04
New York, NY
 

Nice Mr Bonsai,
My next question might be how do you handle the display of pricing? If this is a gift ideally would print invoice without pricing.

At the moment, advising our clients to copy and paste gift message to open word document and print a card. Leaving out the invoice. Not intuitive but neither is most of Magento admin for real businesses…

Thanks for contributing!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Peter_09
Member
 
Total Posts:  40
Joined:  2009-01-19
 

I’m trying to get the cosumers tax number in the PDF invoice, is there a way to display that alwell?

I think the value is:

<?php echo $this->getTaxVat() ?>
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top