Skip to content

Commit

Permalink
merge all changes from release 6.4.0 until now
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Sep 28, 2021
2 parents 90c5ad8 + b2022d1 commit f7eb497
Show file tree
Hide file tree
Showing 37 changed files with 7,753 additions and 2,583 deletions.
16 changes: 16 additions & 0 deletions inc/settings/mollie_advanced_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,22 @@
'</p>'
)
],
[
'id' => $pluginName . '_' . 'gatewayFeeLabel',
'title' => __(
'Surcharge gateway fee label',
'mollie-payments-for-woocommerce'
),
'type' => 'text',
'custom_attributes'=>['maxlength'=>'30'],
'default' => __('Gateway Fee', 'mollie-payments-for-woocommerce'),
'desc' => sprintf(
__(
'This is the label will appear in frontend when the surcharge applies',
'mollie-payments-for-woocommerce'
)
)
],
[
'id' => $pluginName . '_' .'sectionend',
'type' => 'sectionend',
Expand Down
18 changes: 18 additions & 0 deletions inc/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,22 @@ function mollieWooCommerceIsMollieGateway($gateway)
return false;
}

function mollieWooCommercIsExpiryDateEnabled()
{
global $wpdb;
$option = 'mollie_wc_gateway_%_settings';
$gatewaySettings = $wpdb->get_results($wpdb->prepare( "SELECT option_value FROM $wpdb->options WHERE option_name LIKE %s", $option));
$expiryDateEnabled = false;
foreach($gatewaySettings as $gatewaySetting){
$values = unserialize($gatewaySetting->option_value);
if($values['enabled'] !== 'yes'){
continue;
}
if (!empty($values["activate_expiry_days_setting"]) && $values["activate_expiry_days_setting"] === 'yes'){
$expiryDateEnabled = true;
}
}
return $expiryDateEnabled;
}


Binary file modified languages/mollie-payments-for-woocommerce-de_DE.mo
Binary file not shown.
1,218 changes: 925 additions & 293 deletions languages/mollie-payments-for-woocommerce-de_DE.po

Large diffs are not rendered by default.

Binary file modified languages/mollie-payments-for-woocommerce-de_DE_formal.mo
Binary file not shown.
1,202 changes: 917 additions & 285 deletions languages/mollie-payments-for-woocommerce-de_DE_formal.po

Large diffs are not rendered by default.

Binary file modified languages/mollie-payments-for-woocommerce-es_ES.mo
Binary file not shown.
1,204 changes: 918 additions & 286 deletions languages/mollie-payments-for-woocommerce-es_ES.po

Large diffs are not rendered by default.

Binary file modified languages/mollie-payments-for-woocommerce-fr_FR.mo
Binary file not shown.
Loading

0 comments on commit f7eb497

Please sign in to comment.