Skip to content

Commit

Permalink
Fixed another notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Pieters committed May 19, 2016
1 parent 9cb4efb commit 442d53e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 deletions.
33 changes: 0 additions & 33 deletions paynl.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,39 +88,6 @@ function getTableSQLFields()
return $SQLfields;
}

/**
* @param $product
* @param $productDisplay
* @return bool
*/
function plgVmOnProductDisplayPayment($product, &$productDisplay)
{

$vendorId = 1;
if ($this->getPluginMethods($vendorId) === 0) {
return FALSE;
}

foreach ($this->methods as $this->_currentMethod) {
if ($this->_currentMethod->paypalproduct == 'exp') {
$paypalInterface = $this->_loadPaynlInterface();
$product = $paypalInterface->getExpressProduct();
$productDisplayHtml = $this->renderByLayout('expproduct',
array(
'text' => vmText::_('VMPAYMENT_PAYPAL_EXPCHECKOUT_AVAILABALE'),
'img' => $product['img'],
'link' => $product['link'],
'sandbox' => $this->_currentMethod->sandbox,
'virtuemart_paymentmethod_id' => $this->_currentMethod->virtuemart_paymentmethod_id,
)
);
$productDisplay[] = $productDisplayHtml;

}
}
return TRUE;
}

function plgVmOnCheckoutAdvertise($cart, &$payment_advertise)
{

Expand Down
2 changes: 1 addition & 1 deletion paynl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<authorUrl>http://www.pay.nl</authorUrl>
<copyright>Copyright (C) 2013-2016 Pay.nl . All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<version>3.3.5</version>
<version>3.3.6</version>
<description><![CDATA[<a href="https://www.pay.nl/" target="_blank">Pay.nl</a> Easy and secure
payment provider. ]]>
</description>
Expand Down

0 comments on commit 442d53e

Please sign in to comment.