Skip to content

Commit 47cecfe

Browse files
author
Willem Stuursma
committed
Toon foutmelding bij lege banklijst
1 parent f8ed7b6 commit 47cecfe

File tree

1 file changed

+10
-3
lines changed
  • app/design/frontend/base/default/template/mollie/form

1 file changed

+10
-3
lines changed

app/design/frontend/base/default/template/mollie/form/idl.phtml

+10-3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,22 @@
22
// Get Payment code ( mpm_idl ) //
33
$_code = $this->getMethodCode();
44
// 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();
78

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+
?>
815
<ul class="form-list" id="payment_form_<?php echo $this->escapeHtml($_code) ?>" style="display:none;">
916
<li>
1017
<label for="<?php echo $this->escapeHtml($_code) ?>_bank_id" class="required"><em>*</em><?php echo $this->__('Selecteer uw bank:') ?></label>
1118
<span class="input-box">
1219
<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>
1421
<?php foreach ($_banks as $bank_id => $bank_name): ?>
1522
<option value="<?php echo $this->escapeHtml($bank_id) ?>"><?php echo $this->escapeHtml($bank_name) ?></option>
1623
<?php endforeach; ?>

0 commit comments

Comments
 (0)