File tree 1 file changed +10
-3
lines changed
app/design/frontend/base/default/template/mollie/form
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 2
2
// Get Payment code ( mpm_idl ) //
3
3
$ _code = $ this ->getMethodCode ();
4
4
// Fetch all iDEAL banks
5
- $ _banks = Mage::Helper ('mpm/idl ' )->getBanks ();
6
- ?>
5
+ /** @var Mollie_Mpm_Helper_Idl $helper */
6
+ $ helper = Mage::Helper ('mpm/idl ' );
7
+ $ _banks = $ helper ->getBanks ();
7
8
9
+ if (!$ _banks ):
10
+ ?>
11
+ <span style="color: red;">Error in iDEAL module: <?php echo $ this ->escapeHtml ($ helper ->getErrorMessage ());?> </span>
12
+ <?php
13
+ endif ;
14
+ ?>
8
15
<ul class="form-list" id="payment_form_<?php echo $ this ->escapeHtml ($ _code ) ?> " style="display:none;">
9
16
<li>
10
17
<label for="<?php echo $ this ->escapeHtml ($ _code ) ?> _bank_id" class="required"><em>*</em><?php echo $ this ->__ ('Selecteer uw bank: ' ) ?> </label>
11
18
<span class="input-box">
12
19
<select name="payment[bankid]" class="required-entry input-text" id="<?php echo $ this ->escapeHtml ($ _code ) ?> _bank_id">
13
- <option value=''>Kies uw bank</option>
20
+ <option value=''><?php echo $ this -> __ ( ' Selecteer uw bank: ' ) ?> </option>
14
21
<?php foreach ($ _banks as $ bank_id => $ bank_name ): ?>
15
22
<option value="<?php echo $ this ->escapeHtml ($ bank_id ) ?> "><?php echo $ this ->escapeHtml ($ bank_name ) ?> </option>
16
23
<?php endforeach ; ?>
You can’t perform that action at this time.
0 commit comments