Magento Add Instructions to Purchase Order Method on Onepage Checkout -
magento 1.9.1 allows payment instructions bank transfer , cash on delivery, however, there isn't instructions option purchase order. i'd have same box type below purchase order number field when user selects purchase order on checkout. how can add instructions in following places:
- admin configuration (purchase order)
- one page checkout payment type: purchase order
- order review - payment method
- receipt / invoice page
purchase order (no instructions)
i solved going app/design/frontend/base/default/template/payment/form/purchaseorder.phtml
, edidted source code here.
from this:
<ul class="form-list" id="payment_form_<?php echo $this->getmethodcode() ?>" style="display:none;"> <li> <label for="po_number" class="required"><em>*</em><?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 required-entry" value="<?php echo $this->escapehtml($this->getinfodata('po_number')) ?>" /> </div> </li> </ul>
to this:
<ul class="form-list checkout-agreements" id="payment_form_<?php echo $this->getmethodcode() ?>" style="display:none;"> <li> <label for="po_number" class="required"><em>*</em><?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 required-entry" value="<?php echo $this->escapehtml($this->getinfodata('po_number')) ?>" /> </div> </li> <li> <div class="<?php echo $this->getmethodcode() ?>-instructions-content agreement-content"><?php echo $this->__('your text here') ?> </div> </li> </ul>
make sure add checkout-agreements
ul class.
Comments
Post a Comment