Skip to content

Commit

Permalink
Added translation for payment fee
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Pieters committed Jan 16, 2018
1 parent 0c01b22 commit 68ceed1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions paynlpaymentmethods/nl.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
$_MODULE['<{paynlpaymentmethods}prestashop>paynlpaymentmethods_fd93c592927b54c1ff15f8804f8c0b05'] = 'Pay.nl';
$_MODULE['<{paynlpaymentmethods}prestashop>paynlpaymentmethods_464911b85907011709769c8123b32437'] = 'Voeg vele betaalmethoden toe aan uw webshop';
$_MODULE['<{paynlpaymentmethods}prestashop>paynlpaymentmethods_a02758d758e8bec77a33d7f392eb3f8a'] = 'Er is voor deze module geen valuta ingesteld';
$_MODULE['<{paynlpaymentmethods}prestashop>paynlpaymentmethods_020c2091aec3019d02193cef080bcf97'] = 'Betaalmethode toeslag';
$_MODULE['<{paynlpaymentmethods}prestashop>paynlpaymentmethods_c888438d14855d7d96a2724ee9c306bd'] = 'Instellingen opgeslagen';
$_MODULE['<{paynlpaymentmethods}prestashop>paynlpaymentmethods_68bf367e228f45ba83cb8831a5ee6447'] = 'Nederlands';
$_MODULE['<{paynlpaymentmethods}prestashop>paynlpaymentmethods_78463a384a5aa4fad5fa73e2f506ecfc'] = 'Engels';
Expand Down
6 changes: 2 additions & 4 deletions paynlpaymentmethods/paynlpaymentmethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function createPaymentFeeProduct() {
$objProduct->visibility = 'none';

foreach ( Language::getLanguages() as $language ) {
$objProduct->name[ $language['id_lang'] ] = 'Payment fee';
$objProduct->name[ $language['id_lang'] ] = $this->l('Payment fee');
$objProduct->link_rewrite[ $language['id_lang'] ] = Tools::link_rewrite( $objProduct->name[ $language['id_lang'] ] );
}

Expand Down Expand Up @@ -582,7 +582,7 @@ private function addPaymentFee( Cart $cart, $iFee_wt ) {
$iFee = (float) number_format( (float) $iFee_wt / ( 1 + ( $vatRate / 100 ) ), 2 );

$specific_price_rule = new SpecificPriceRule();
$specific_price_rule->name = 'Payment fee';
$specific_price_rule->name = $this->l('Payment fee');
$specific_price_rule->id_shop = (int) $this->context->shop->id;
$specific_price_rule->id_currency = $cart->id_currency;
$specific_price_rule->id_country = 0;
Expand Down Expand Up @@ -683,8 +683,6 @@ public function startPayment(Cart $cart, $payment_option_id, $extra_data = array
private function _getProductData( Cart $cart ) {
$arrResult = array();
foreach ( $cart->getProducts() as $product ) {


$arrResult[] = array(
'id' => $product['id_product'],
'name' => $product['name'],
Expand Down

0 comments on commit 68ceed1

Please sign in to comment.