Skip to content

Commit

Permalink
Merge pull request #6 from paynl/feature/PLUG-3689
Browse files Browse the repository at this point in the history
PLUG-3689 - Update in3 logo
  • Loading branch information
woutse authored Jul 29, 2024
2 parents 6437bbf + f030ac2 commit ebff0f9
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
$output = '';
foreach ($arrOptions as $option)
{
$output .= '<img src="' . $option->getImage() . '" /> ' . $option->getName() . '<br />';
$output .= '<img src="' . $option->getImage() . '" width="20"/>' . $option->getName() . '<br />';
}
} catch (Exception $e)
{
Expand Down
15 changes: 14 additions & 1 deletion app/code/community/Pay/Payment/Block/Form/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,20 @@ protected function _construct()
$mark = new $markClass;
$mark->setTemplate('pay/payment/mark.phtml')
->setPaymentMethodImageSrc('https://static.pay.nl/payment_profiles/' . $iconSize . '/' . $this->paymentMethodId . '.png')
->setPaymentMethodName($this->paymentMethodName);
->setPaymentMethodName($this->paymentMethodName)
->setIconSizeWidth('')
->setIconSizeHeight('');

if ($this->paymentMethodId == 1813) {
$iconSize = explode("x", $iconSize);

$mark->setTemplate('pay/payment/mark.phtml')
->setPaymentMethodImageSrc('https://static.pay.nl/payment_profiles/100x100/' . $this->paymentMethodId . '.svg')
->setPaymentMethodName($this->paymentMethodName)
->setIconSizeWidth($iconSize[0] + 10)
->setIconSizeHeight($iconSize[1]);
}


$fee = $this->getPaymentCharge();

Expand Down
4 changes: 4 additions & 0 deletions app/code/community/Pay/Payment/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,10 @@ private function _saveOptions($paymentMethods, $store = null)
foreach ($paymentMethods as $paymentMethod) {
$image = 'https://static.pay.nl/payment_profiles/20x20/' . $paymentMethod['id'] . '.png';

if ($paymentMethod['id'] == 1813) {
$image = 'https://static.pay.nl/payment_profiles/100x100/' . $paymentMethod['id'] . '.svg';
}

/**
* @var Pay_Payment_Model_Option $objOption
*/
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Pay/Payment/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<Pay_Payment>
<version>3.16.1</version>
<version>3.16.2</version>
</Pay_Payment>
</modules>
<global>
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<img src="<?php echo $this->escapeHtml($this->getPaymentMethodImageSrc())?>" alt="<?php echo $this->getPaymentMethodName() ?>" class="v-middle" style="padding-right:10px;" />&nbsp;
<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;" />&nbsp;
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<img src="<?php echo $this->escapeHtml($this->getPaymentMethodImageSrc())?>" alt="<?php echo $this->getPaymentMethodName() ?>" class="v-middle" style="padding-right:10px;" />&nbsp;
<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;" />&nbsp;

0 comments on commit ebff0f9

Please sign in to comment.