【问题标题】:Magento Add Instructions to Purchase Order Method on Onepage CheckoutMagento 在 Onepage Checkout 上添加采购订单方法说明
【发布时间】:2016-01-27 02:17:37
【问题描述】:

Magento 1.9.1 允许银行转账和货到付款的付款说明,但是没有采购订单的说明选项。当用户在结帐时选择采购订单时,我希望在采购订单号字段下方有相同的框类型。如何在以下位置添加说明:

  • 管理员配置(采购订单)
  • 单页结帐付款类型:采购订单
  • 订单审核 - 付款方式
  • 收据/发票页面

采购订单(无说明)

银行转账(说明)

银行转帐(付款方式说明)

管理员配置

【问题讨论】:

    标签: magento magento-1.9


    【解决方案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 类。

    【讨论】:

    • 谢谢,我需要类似的东西,因为我主要处理 B2B(企业对企业),我们接受了很多采购订单。很好的解决方案。像这样的东西会在 GitHub 上成为一个很棒的模块或扩展。
    猜你喜欢
    • 2011-11-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-30
    • 2014-10-23
    • 1970-01-01
    • 2013-11-04
    • 2012-11-20
    相关资源
    最近更新 更多