To add a customer comment field to Magento Checkout, I added a text box to the corresponding template file and added a comment to the order using an observer, like this:
$comment = strip_tags(Mage::app()->getRequest()->getParam('cpOrderComment')); if(!empty($comment)){ $observer->getEvent()->getOrder()->setCustomerNote($_comments); }
This worked fine using the OnestepCheckout extension, however it does not work with the Magento Onepage Checkout. "GetParam (" cpOrderComment ") is always empty, and now I'm not sure how to get the value of my text field.
Any ideas would be greatly appreciated!
source share