window 无大小写区别,所以可以显示表框
linux 大小写敏感,显示不了
\app\code\community\Company\BabyPay\Model\Payment.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.
app\code\local\Neurona\Sistarbanc\Block\Form\sistarbanc.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 app\design\frontend\base\default\template\payment\form\sistarbanc.pHTML
Any help will be appreciated!!
EDIT
So,it seems to be working in the default ckeckout process but not in the onestepcheckout
EDIT 2I 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; ?>" <?PHP if(!$this->getSelectedMethodCode()==$_code || !($hIDe_nonfree_methods && $_code == ‘free‘)): ?> <?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 版权所有
总结以上是内存溢出为你收集整理的magento form.html不显示 window 和 Linux下的区别全部内容,希望文章能够帮你解决magento form.html不显示 window 和 Linux下的区别所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)