zoukankan      html  css  js  c++  java
  • magento form.html不显示 window 和 Linux下的区别

    window 无大小写区别,所以可以显示表框

    Linux 大小写敏感,显示不了

    appcodecommunityCompanyBabyPayModelPayment.php 里定义了form

    protected $_code = 'BabyPay_payment';
    protected $_formBlockType = 'BabyPay/form';  //大写

    /app/design/frontend/default/default/template/BabyPay/ 所以这个文件夹也要大写

    标签云

    Magento自定义付款方式形式不显示

     

     

    I wrote a custom payment module. It seems to be working fine but I can't show the method form in the checkout process. I mean: I see my method, I can select it, but can't see the form. I want to show a select box with a couple of options but no form is rendered.

    appcodelocalNeuronaSistarbancBlockFormsistarbanc.php

    class Neurona_Sistarbanc_Block_Form_Sistarbanc extends Mage_Payment_Block_Form
    {
      protected function _construct()
       {
        parent::_construct();
        $this->setTemplate('payment/form/sistarbanc.phtml');
       }
    ....
    

    And the form in appdesignfrontendasedefault emplatepaymentformsistarbanc.phtml

    Any help will be appreciated!!

    EDIT

    It works in a fresh magento install with default theme It does NOT work in onestepcheckout

    So, it seems to be working in the default ckeckout process but not in the onestepcheckout

    EDIT 2

    I found that in onestepheckout this is the way the payment method form is rendered:

    <?php if ($html = $this->getPaymentMethodFormHtml($_method)): ?>
      <dd id="container_payment_method_<?php echo $_code; ?>" class="payment-method" <?php if(!$this->getSelectedMethodCode()==$_code || !($hide_nonfree_methods && $_code == 'free')): ?> style="display:none"<?php endif; ?>>
    <?php echo $html; ?>
    </dd>
    

    So, for my method $this->getPaymentMethodFormHtml($_method) is FALSE. �0�7why?

    2016年10月27日12分02秒

     

    Your template filename is Sisterbanc.phtml, but your block will try to load sisterbanc.phtml (uppercase "s" vs lowercase "s").

    2016年10月27日12分02秒

     

    Maybe you need add this line in Model/Payment.php.

    protected $_formBlockType = "sistarbanc/form/sistarbanc"

    I don't know the reason why though. I compared with other payment module code, and got this.

    2016年10月27日12分02秒

     

    © 2016 91R.NET 版权所有

  • 相关阅读:
    [AHOI2006]文本编辑器 Splay tree区间操作
    HDU-3487 Play with Chain Splay tee区间反转,移动
    HDU-4619 Warm up 2 二分匹配
    HDU-4618 Palindrome Sub-Array 暴力枚举
    HDU-4616 Game 树形DP
    HDU-4614 Vases and Flowers 线段树区间更新
    HDU-4612 Warm up 边双连通分量+缩点+最长链
    HDU-4611 Balls Rearrangement 循环节,模拟
    HDU-4605 Magic Ball Game 树状数组+离散+dfs
    HDU-3436 Queue-jumpers 树状数组 | Splay tree删除,移动
  • 原文地址:https://www.cnblogs.com/alex-13/p/11343317.html
Copyright © 2011-2022 走看看