I have a field in the checkout where the user can put a PO Number. This field worked fine in 1.8.0, but it doesn't save anymore in 1.8.1, the database field stays empty.

template/payment/form/checkmo.phtml has the following code added to it:

<ul class="form-list" id="payment_form_<?php echo $this->getMethodCode() ?>" style="display:none;">
        <label for="po_number" class="not-required"><?php echo $this->__('Purchase Order Number') ?></label>
        <div class="input-box">
            <input type="text" id="po_number" name="payment[po_number]" title="<?php echo $this->__('Purchase Order Number') ?>" class="input-text" value="<?php echo $this->htmlEscape($this->getInfoData('po_number')) ?>" />

Since there was a lot of problems with the formkey stuff around the login system, I went ahead and added the following code the template/checkout/onepage/payment.phtml inside the form tag:

<?php echo $this->getBlockHtml('formkey'); ?>

This to add the form key in case that was the problem, which is not.

The PO Number is a very important item in our store, so it is vital that this works, but I currently can not find a reason why it doesn't save it. Any help and/or hints are greatly appreciated!

UPDATE After bit of debugging, I found out that is does save on one payment (iDeal), but it doesn't on another (checkmo), even though it does get sent anyway. I still do not know where or how exactly it gets lost though..

  • 1
    Please have a look in the great debugging tutorial and report back. Check the old system against the new. Is it passed to the controller, did you clean the cache, does the field still exist in the database? You sure, that it is payment and not order? Commented Mar 4, 2014 at 11:39
  • @FabianBlechschmidt The field exists in the database, it definately is payment, cache is off, var/cache folder emptied. That made no difference. How can I check if it is passed to the controller? Commented Mar 7, 2014 at 9:35
  • Does a folder Mage exists in app/code/local? Or did you had any modifications done directly on the core files?
    – Emi
    Commented Mar 14, 2014 at 9:39
  • @Emi folder does exist, but is empty so I might as well get rid of the folder there. Commented Mar 14, 2014 at 9:40
  • @Emi Core files are not editted, as it should. As far as I have found there are no other modules overriding the savePaymentAction. Commented Mar 14, 2014 at 9:47


Browse other questions tagged or ask your own question.