Magento 1.9.1允许银行转账和货到付款的付款指示,但是,没有采购订单的指示选项。当用户在结账时选择采购订单时,我希望在采购订单编号字段下方具有相同的框类型。如何在以下位置添加说明:
答案 0 :(得分:1)
我最终通过转到app/design/frontend/base/default/template/payment/form/purchaseorder.phtml
并在此处修改了源代码来解决这个问题。
来自:
<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>
对此:
<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>
确保将checkout-agreements
添加到ul类。