Note that there are some explanatory texts on larger screens.

plurals
  1. POmagento custom payment method form not showing
    text
    copied!<p>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.</p> <p><strong>app\code\local\Neurona\Sistarbanc\Block\Form\sistarbanc.php</strong></p> <pre><code>class Neurona_Sistarbanc_Block_Form_Sistarbanc extends Mage_Payment_Block_Form { protected function _construct() { parent::_construct(); $this-&gt;setTemplate('payment/form/sistarbanc.phtml'); } .... </code></pre> <p>And the form in <strong>app\design\frontend\base\default\template\payment\form\sistarbanc.phtml</strong></p> <p>Any help will be appreciated!!</p> <p><strong>EDIT</strong></p> <p><img src="https://i.stack.imgur.com/BbxYD.png" alt="It works in a fresh magento install with default theme"> <img src="https://i.stack.imgur.com/qNEFp.png" alt="It does NOT work in onestepcheckout"></p> <p><strong>So, it seems to be working in the default ckeckout process but not in the onestepcheckout</strong></p> <h2><strong>EDIT 2</strong></h2> <p>I found that in onestepheckout this is the way the payment method form is rendered:</p> <pre><code>&lt;?php if ($html = $this-&gt;getPaymentMethodFormHtml($_method)): ?&gt; &lt;dd id="container_payment_method_&lt;?php echo $_code; ?&gt;" class="payment-method" &lt;?php if(!$this-&gt;getSelectedMethodCode()==$_code || !($hide_nonfree_methods &amp;&amp; $_code == 'free')): ?&gt; style="display:none"&lt;?php endif; ?&gt;&gt; &lt;?php echo $html; ?&gt; &lt;/dd&gt; </code></pre> <p>So, for my method <code>$this-&gt;getPaymentMethodFormHtml($_method)</code> is <code>FALSE</code>. ¿why?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload