File tree 6 files changed +22
-5
lines changed
adminhtml/base/default/template/pay/payment
frontend/base/default/template/pay/payment
6 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
34
34
$ output = '' ;
35
35
foreach ($ arrOptions as $ option )
36
36
{
37
- $ output .= '<img src=" ' . $ option ->getImage () . '" /> ' . $ option ->getName () . '<br /> ' ;
37
+ $ output .= '<img src=" ' . $ option ->getImage () . '" width="20"/> ' . $ option ->getName () . '<br /> ' ;
38
38
}
39
39
} catch (Exception $ e )
40
40
{
Original file line number Diff line number Diff line change @@ -37,7 +37,20 @@ protected function _construct()
37
37
$ mark = new $ markClass ;
38
38
$ mark ->setTemplate ('pay/payment/mark.phtml ' )
39
39
->setPaymentMethodImageSrc ('https://static.pay.nl/payment_profiles/ ' . $ iconSize . '/ ' . $ this ->paymentMethodId . '.png ' )
40
- ->setPaymentMethodName ($ this ->paymentMethodName );
40
+ ->setPaymentMethodName ($ this ->paymentMethodName )
41
+ ->setIconSizeWidth ('' )
42
+ ->setIconSizeHeight ('' );
43
+
44
+ if ($ this ->paymentMethodId == 1813 ) {
45
+ $ iconSize = explode ("x " , $ iconSize );
46
+
47
+ $ mark ->setTemplate ('pay/payment/mark.phtml ' )
48
+ ->setPaymentMethodImageSrc ('https://static.pay.nl/payment_profiles/100x100/ ' . $ this ->paymentMethodId . '.svg ' )
49
+ ->setPaymentMethodName ($ this ->paymentMethodName )
50
+ ->setIconSizeWidth ($ iconSize [0 ] + 10 )
51
+ ->setIconSizeHeight ($ iconSize [1 ]);
52
+ }
53
+
41
54
42
55
$ fee = $ this ->getPaymentCharge ();
43
56
Original file line number Diff line number Diff line change @@ -405,6 +405,10 @@ private function _saveOptions($paymentMethods, $store = null)
405
405
foreach ($ paymentMethods as $ paymentMethod ) {
406
406
$ image = 'https://static.pay.nl/payment_profiles/20x20/ ' . $ paymentMethod ['id ' ] . '.png ' ;
407
407
408
+ if ($ paymentMethod ['id ' ] == 1813 ) {
409
+ $ image = 'https://static.pay.nl/payment_profiles/100x100/ ' . $ paymentMethod ['id ' ] . '.svg ' ;
410
+ }
411
+
408
412
/**
409
413
* @var Pay_Payment_Model_Option $objOption
410
414
*/
Original file line number Diff line number Diff line change 2
2
<config >
3
3
<modules >
4
4
<Pay_Payment >
5
- <version >3.16.1 </version >
5
+ <version >3.16.2 </version >
6
6
</Pay_Payment >
7
7
</modules >
8
8
<global >
Original file line number Diff line number Diff line change 1
- <img src="<?php echo $ this ->escapeHtml ($ this ->getPaymentMethodImageSrc ())?> " alt="<?php echo $ this ->getPaymentMethodName () ?> " class="v-middle" style="padding-right:10px;" />
1
+ <img src="<?php echo $ this ->escapeHtml ($ this ->getPaymentMethodImageSrc ())?> " height=" <?php echo $ this -> getIconSizeHeight () ?> " width=" <?php echo $ this -> getIconSizeWidth () ?> " alt="<?php echo $ this ->getPaymentMethodName () ?> " class="v-middle" style="padding-right:10px;" />
Original file line number Diff line number Diff line change 1
- <img src="<?php echo $ this ->escapeHtml ($ this ->getPaymentMethodImageSrc ())?> " alt="<?php echo $ this ->getPaymentMethodName () ?> " class="v-middle" style="padding-right:10px;" />
1
+ <img src="<?php echo $ this ->escapeHtml ($ this ->getPaymentMethodImageSrc ())?> " height=" <?php echo $ this -> getIconSizeHeight () ?> " width=" <?php echo $ this -> getIconSizeWidth () ?> " alt="<?php echo $ this ->getPaymentMethodName () ?> " class="v-middle" style="padding-right:10px;" />
You can’t perform that action at this time.
0 commit comments